I have a complex configuration file that i want to update using Powershell.
is there any helpful way i could achieve that.
I want to update SelectedCodes only.
the file:
<?xml version="1.0"?>
<Settings>
<ServerIPAddress>192.168.150.128:8090</ServerIPAddress>
<SettingString>
{
"StationName":"Testing",
"LocationCode":12,
"AskForMoreDetails":false,
"IsLaptop":false,
"SpecificDepartment":"",
"SelectedCodes":[
{
"Id":16,
"Name":"Code Blue",
"HtmlColorCode":"#0000FF",
"TextColorCode":"#ffffff",
"DisplayOrderNumber":1
},
{
"Id":19,
"Name":"CCRT",
"HtmlColorCode":"#3CB371",
"TextColorCode":"#FFFFFF",
"DisplayOrderNumber":3
}
],
"AreaCode":12
}
</SettingString>
<StartUpLaunchSet>False</StartUpLaunchSet>
<CodeRedId>27</CodeRedId>
</Settings>