Accessing WMI

There are 3 sets of cmdlets for working with WMI classes – the WMI cmdlets, the WSMAN cmdlets and the CIM cmdlets.  The protocols used by these 3 sets are different.

The WMI cmdlets introduced in PowerShell 1 & 2 use DCOM for local and remote access under all circumstances

The WSMAN cmdlets introduced in PowerShell 2 use WSMAN (WinRm)

The CIM cmdlets introduced in PowerShell 3 use:

– DCOM for local access if ComputerName parameter NOT used

– WSMAN for local access IF –ComputerName parameter is used

– WSMAN (WinRM) for remote access  

– WSMAN if a default CIM session is used for remote access

– DCOM if a CIM session is created using DCOM as the protocol option

The CIM cmdlets are easier to use than the WSMAN cmdlets and are the recommended way to access WMI classes.

This entry was posted in PowerShell and WMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s