Skip to content

Instantly share code, notes, and snippets.

@cmrichardson
Last active October 25, 2019 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmrichardson/9b67301b97f1b80dee8721d8d16f91a6 to your computer and use it in GitHub Desktop.
Save cmrichardson/9b67301b97f1b80dee8721d8d16f91a6 to your computer and use it in GitHub Desktop.
XML example
[xml]$xml = @'
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Management.Automation.PSCustomObject</T>
<T>System.Object</T>
</TN>
<MS>
<Obj N="LastInstanceSessions" RefId="9">
<TNRef RefId="0" />
<MS>
<S N="0"></S>
<S N="1">10.100.4.219 (clive.richardson)</S>
</MS>
</Obj>
<Obj N="PortForwarding" RefId="10">
<TNRef RefId="0" />
<MS>
<S N="0000.XYZ-DEV-ABC1">Local;fred.smith@10.100.1.111:22;10.111.4.212:1433;11111;-1;C:\Keys\PrivateKey.ppk;0.0.0.0;No proxy selected;0</S>
<S N="0001.XYZ-QA-ABC1">Local;fred.smith@10.100.1.111:22;10.111.4.12:1433;11112;-1;C:\Keys\PrivateKey.ppk;0.0.0.0;No proxy selected;0</S>
</MS>
</Obj>
</MS>
</Obj>
</Objs>
'@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment