Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created May 10, 2013 15:21
Show Gist options
  • Save jtuttas/5555111 to your computer and use it in GitHub Desktop.
Save jtuttas/5555111 to your computer and use it in GitHub Desktop.
update Nodes
cls
[xml]$a = Get-Content ("D:\Dropbox\temp\rechnernetz.xml")
$n = $a.SelectNodes("//pc")
foreach ($p in $n) {
if ($p.name -eq "Franks Notebook") {
$p.ip="192.168.178.10"
}
}
$a.Save("D:\Dropbox\Temp\rechnernetz_neu.xml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment