Powershell replace config in XML file

Date: 2019-08-28
$Octopusboard = "123456"
$OctopusUrl = "https://test.com/"
$f = Resolve-Path ".\App.exe.config"
$xml = New-Object System.Xml.XmlDocument
$xml.PreserveWhitespace = $true
$xml.Load($f)
$board = $xml.SelectSingleNode('//board-id')
$board.InnerText = $Octopusboard
$url = $xml.SelectSingleNode('//url')
$url.InnerText = $OctopusUrl
$xml.Save($f) 
25270cookie-checkPowershell replace config in XML file