Why do you want to use Get-CimInstance instead of Get-WmiObject

There are a couple of reasons to start using Get-CimInstance instead of Get-WMIObject but I am just going to mention 2 and show you a video of what i am talking about

  1. If run get-wmiobject remotely uses DCOM ports by default and you should not like and I am 100 sure your network and security guys hate that. Now if you use Get-CimInstance it connects to the remote computer over the wsman protocol, it will use port 5985 by default

2. Get-CimInstance have tab completion,  what this means I dont have           to remember by heart every class name nor every namespace. The                 video will show you what I am referring to

 

Get-CIMInstance was introduced PowerShell V3.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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