Just reading the complete Udell article again.
Can’t help but feel that getting an XML representation of system processes over a certain size using a command like: <
MSH> get-process | pick-object name,vs | where { $_.vs -gt 150000000} | convert-xml
is extremely neat. Sample results are listed below. I’m less than convinced about the two-part name/type syntax for the XML representation (it’s a bit clunky) but this is a small quibble.
<MshObjects>
<MshObject ReferenceID="ReferenceId-0" Version="1.1">
<MemberSet>
<Note Name="name" IsHidden="false" IsInstance="true" IsSettable="true">
<string> firefox</string>
</Note>
<Note Name="vs" IsHidden="false" IsInstance="true" IsSettable="true">
<int> 220983296</int>
</Note>
</MemberSet>
</MshObject>
</MshObjects>
Categories