Welcome to the Liquidware Community Site.
Current and Future Clients/Partners are Welcome.

How to edit ProfileUnity Config files

For example when you want to modify.

"C:\Program Files\ProfileUnity\Client.NET\LwL.ProfileUnity.Client.CmdService.exe.config"

you can use this Powershell script to modify the file without changing the files in the tools directory.


contents of script

## Read the existing file

$xmlFileName = "C:\Program Files\ProfileUnity\Client.NET\LwL.ProfileUnity.Client.CmdService.exe.config"

[xml]$xmlDoc = Get-Content $xmlFileName


## Change 

($xmlDoc.configuration.userSettings.'LwL.ProfileUnity.Client.CmdService.Properties.Settings'.setting | Where-Object {$_.name -eq "LogoffShutsdown"}).value = "True"


## Then you can save that back to the xml file

$xmlDoc.Save("C:\Program Files\ProfileUnity\Client.NET\LwL.ProfileUnity.Client.CmdService.exe.config")

Sign In or Register to comment.