PowerShell for Windows Admins:


April 29, 2013  1:17 PM

CIM vs WMI cmdlets-remote execution speed

Posted by: Richard Siddaway
PowerShell 3, WMI

Following on from my previous post we’ll look at how the two types of cmdlets compare for accessing remote machines. I used a similar format to the previous tests but was accessing a remote machine. First off was the WMI cmdlet – using DCOM to access the remote Windows 2012...

April 28, 2013  3:03 PM

CIM cmdlets vs WMI cmdlets–speed of execution

Posted by: Richard Siddaway
PowerShell 3, WMI

One question that came up at the summit was the comparative speed of execution of the new CIM cmdlets vs the old WMI cmdlets.  No of us knew the answer because we’d never tried measuring the speed.

I decided to perform some tests.

This first test is accessing the local...

April 4, 2013  2:44 PM

Manning Deal of the Day – April 6 2013

Posted by: Richard Siddaway
Books, PowerShell, WMI

My PowerShell and WMI book will be Manning’s deal of the day for 6 April 2013.  The deal will go live at Midnight US ET and will stay active for about 48 hours.

This is your chance to get the book with a 50% discount.

Use code dotd0406au at

April 1, 2013  5:17 AM

Shutting down a remote computer

Posted by: Richard Siddaway
PowerShell 3, Windows Server 2012, WMI

PowerShell provides the Stop-Computer cmdlet for closing down a remote machine. I find this especially useful in my virtual test environment. I’ll have several machines running but won’t necessarily have logged onto them. Using Stop-Computer means that I can shut them down cleanly without...

March 26, 2013  3:02 PM

CIM cmdlets

Posted by: Richard Siddaway
PowerShell 3, WMI

The CIM cmdlets are found in the CIMcmdlets module.

Get-Command -Module CimCmdlets  produces this list of names.  I’ve added some information on the tasks they perform

Get-CimAssociatedInstance  is for working with WMI associated classes

March 24, 2013  6:04 AM


Posted by: Richard Siddaway
PowerShell 3, WMI

An email debate yesterday regarding the use of the CIM cmdlets (new in PowerShell 3) vs the WMI cmdlets made me realise that other people are probably wondering the same thing,

The question is really part of a the semi-philosophical debate about when you should adopt new technology.


March 11, 2013  2:07 PM

Network Adapters–Disable/Enable

Posted by: Richard Siddaway
PowerShell 3, Windows 8, Windows Server 2012, WMI

Last time we saw the Get-NetAdapter cmdlet from the NetAdapter module

PS> Get-NetAdapter | ft Name, InterfaceDescription, Status -a

Name    ...

March 4, 2013  2:23 PM

Network adapters

Posted by: Richard Siddaway
PowerShell 3, Windows 8, Windows Server 2012, WMI

The WMI classes Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration have seen a lot of use over the years. They can be a bit fiddly to use which is why the NetAdapter module in Windows 8/2012 is a so welcome.

Lets start by looking at basic information gathering


February 18, 2013  4:32 PM

CIM cmdlets and remote access

Posted by: Richard Siddaway
PowerShell, PowerShell 3, WMI

When you used the WMI cmdlets

Get-WmiObject -Class Win32_logicalDisk -ComputerName RSLAPTOP01

You were using DCOM to access the remote machine. Even if you accessed the local machine you were using DCOM.

This changes in PowerShell v3 when using the CIM cmdlets.


February 18, 2013  1:37 PM


Posted by: Richard Siddaway
PowerShell, WMI

I’ve been grading the scripts in the warm up events for the Scripting Games and noticed a lot of people doing this:

Get-WmiObject -Class Win32_LogicalDisk | where {$_.DriveType -eq 3}

Ok now it works but there are a couple of things wrong with this approach.


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: