Advertisement
Guest User

Untitled

a guest
May 29th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #load config into new XML object
  2. $xml = New-Object XML
  3. $xml.Load("$($TaskDir):\ProductionStaging\$($NewArtifactsFolder)\GGCPS_Node302\Giftango.Windows.GGCPS.exe.config")
  4.  
  5. #update NodeId
  6. $xml.configuration.appSettings.add | Where-Object { $_.key -eq 'NodeId' } | ForEach-Object { $_.value = '302' }
  7.  
  8. #save the file
  9. $xml.Save("$($TaskDir):\ProductionStaging\$($NewArtifactsFolder)\GGCPS_Node302\Giftango.Windows.GGCPS.exe.config")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement