This blog has moved to http://ThePowerShellGuy.com
Greetings /\/\o\/\/
It's busy at the Monad front lately, so again I have a buch of links :
Keith got Scott Hanselman on Monad and how ;-)
Loving Mush - I mean Monad( also check the podcast )Also Keith has a Range Code Camp Presentation on Monad soon, read more on his blog
Keith Hill's BlogPS if you came from his blog looking for WMI examples, the script in my latest post about it generates scripttemplates for calling WMI Methods MSH get-WmiMethodHelp function Update 3 Also try a search on WMI on my blog, you will find some more examples I did in the past (as showing the WMI items in a GUI )Monad source features some Monad downloads, scripts, forums and more to come.
Monad sourceKarl Prosser is very busy on his MSH anallyzer
$MSHHOME in MSH ANALYZERon The lazy admin also more and more monad stuff
Using MSH With Exchange 2003TheLazyadmin.com MSH Categoryalso a nice example if you use I-tumes on opinionatedgeek
Using Monad/MSH to parse iTunes playlists [.NET]
Tony did some updates on his remote host
Monad Remoting - Now Can Read SecureString From Remote Clientalso on IRC (irc.freenode.net channel #monad), there is MSH activity.
also the Monad Beta program moved to Connect for the bug reporting, you can read more about it on Lee Holmes blog
Precision Computingyou also can find an item about an issue I posted about in the NG
Monad (Monad Technology Blog)
Finding out what determines which properties are displayedI changed it to this, I think would be better (showing the main item CurrentUsage)
root\cimv2\Win32_PageFileUsage
Caption
Name
CurrentUsage
PeakUsage
I generated some lists to check the other properties defined like this :
# list of all defined types :
([xml](gc $MSHHOME\types.mshxml)).types.type foreach {$_.name}
# list of WMI default properties
([xml](gc $MSHHOME\types.mshxml)).types.type foreach {"`n$($_.name.split('#')[1])`n";$_.members.memberset.members.PropertySet.ReferencedProperties foreach {$_.name}}
(Little bit of garbage at begin and end)
and this one also gets all properties of an instance for each WMI class in the list (to compare)
Take care !!! as cim_datafile is one of them this takes a long time, its better to get the names fro m the list and get the ones needed , I did this 2 times (second time to text file) just as I was lazy but it took 20 minutes !! (at will show only the first but gets all) it was just a quick oneliner to greate the 35 page list to compare)
if MSH seems to hang , (its not but scanning all your disks) and you want to stop it crtl-C does not work , you can break with ctrl-break this will stop the script but also closes the MSH session so use at own risk ;-)
the one-liner looks like this :
([xml](gc $MSHHOME\types.mshxml)).types.type foreach {"`n$($_.name.split('#')[1])";get-wmiobject ($_.name.split('#')[1].split('\')[2]) select -first 1 fl [a-z]*;$_.members.memberset.members.PropertySet.ReferencedProperties foreach {$_.name}}
Append this to output it to file -> out-file c:\wmiformat.txt
that's it for now
enjoy,
greetings /\/\o\/\/
Tags : Monad msh