I'd like to automate WSUS deploy. That can be done using an xml: https://www.petri.com/automating-wsus-2016-installation-with-powershell
So now I'd like to change the xml with the servername.
In other words, I need to replace the computername (Servernamexyz in my example, can change overtime) in this xml.
So I'd get the xml in $XML = get-content c:\myxml.xml
tags to replace are
and <S N="PSComputerName">Servern
How do I replace <S N="ServerName"> whatever </s> and <S N="PSComputerName">Whateve
I can then write result back to xml.
Thanks for your input.