PowerShell for Windows Admins:

WMI


April 30, 2011  12:02 PM

PowerShell Deep Dive III: WQL query speed



Posted by: Richard Siddaway
PowerShell v2, WMI

One topic that came up during my talk at Deep Dive was the speed of running a WQL vs using –Filter in Get-WmiObject.  I’d never tested it so its time to find out.

PowerShell v2 has a handy cmdlet called Measure-Command that times how long a command runs

We’ll start...

April 29, 2011  3:28 AM

PowerShell Deep Dive: II Win32_Volume



Posted by: Richard Siddaway
Disks, PowerShell v2, WMI

One question that I was asked at the deep dive -

Is there a way to link a disk volume back to the physical disk it resides on?

There doesn’t seem to be. If we test the WMI classes associated with a volume we get these results

Win32_Directory
Win32_QuotaSetting...


April 26, 2011  1:08 PM

System Stability part II



Posted by: Richard Siddaway
Operating System, PowerShell v2, Windows 2008 R2, Windows 7, WMI

Last time we looked at the Win32_ReliabilityStabilityMetrics and closed by stating we’d look at the reliability records.  Reliability records are event log records related to system reliability.  The working part of the record is shown below (after the system properties are...


April 21, 2011  1:52 PM

PowerShell and WMI MEAP update



Posted by: Richard Siddaway
Books, PowerShell, WMI

Chapters 8 and 9 of PowerShell and WMI have been released into the MEAP. They are available from http://www.manning.com/siddaway2/

 

Chapter 8 covers the File system

    ...


March 21, 2011  1:15 PM

Documenting WMI



Posted by: Richard Siddaway
PowerShell v2, WMI

Its been said many times that tracking down documentation on WMI classes can be difficult. This script will help to some degree


March 15, 2011  1:20 PM

PowerShell and WMI–Chapters 6 & 7 in MEAP



Posted by: Richard Siddaway
Books, PowerShell v2, WMI

Chapters 6 and 7 have been released for PowerShell and WMI. It is available through the Manning Early Access Program (MEAP) at http://www.manning.com/siddaway2/
The available chapters cover:

  1. Solving Administrative...


March 13, 2011  1:38 PM

WMI–Provider Load Failure



Posted by: Richard Siddaway
Network, PowerShell v2, Windows 2008 R2, WMI

I’m currently writing Chapter 11 of PowerShell and WMI and its about using the WMI classes related to networking. I tried the Win32_NetworkAdapter on the HP laptop I use for writing and everything worked fine. Tried it on my Lenovo that I use as a Hyper-V server and got a Provider Load failure...


March 7, 2011  4:18 PM

PowerShell Deep Dive sessions



Posted by: Richard Siddaway
PowerShell v2, WMI

I’ve previously mentioned the PowerShell Deep Dive in April -

Bookmark and Share     0 Comments     RSS Feed     Email a friend


February 28, 2011  1:32 PM

WMI metadata



Posted by: Richard Siddaway
WMI

 

We normally use WMI to either return information about our systems

Get-WmiObject -Class Win32_Process | sort KernelModeTime -desc | Format-Table Name, KernelModeTime –AutoSize

or to perform some action

Get-WmiObject -Class Win32_Process -Filter...


February 23, 2011  1:18 PM

PowerShell and WMI–Chapter 5 MEAP



Posted by: Richard Siddaway
Books, PowerShell, WMI

Chapter 5 has been released for PowerShell and WMI. It is available through the Manning Early Access Program (MEAP) at http://www.manning.com/siddaway2/
The available chapters cover:

  1. Solving Administrative...