Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #load config into new XML object
- $xml = New-Object XML
- $xml.Load("$($TaskDir):\ProductionStaging\$($NewArtifactsFolder)\GGCPS_Node302\Giftango.Windows.GGCPS.exe.config")
- #update NodeId
- $xml.configuration.appSettings.add | Where-Object { $_.key -eq 'NodeId' } | ForEach-Object { $_.value = '302' }
- #save the file
- $xml.Save("$($TaskDir):\ProductionStaging\$($NewArtifactsFolder)\GGCPS_Node302\Giftango.Windows.GGCPS.exe.config")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement