PowerShell and WMI

Finding a CIM class

One of the problems you might find is finding a CIM class. You know its name but you don’t know which namespace its in. The old WMI cmdlets allow...

read more

wmic deprecated

I saw a forum post today where the question involved the use of the wmi command line tool wmic.   Wmic was deprecated in Windows Server 2012 -...

read more

Server Uptime

Its easy to get the last boot time of a Windows machine but how do you get the uptime   function Get-Uptime { [CmdletBinding()] param (...

read more

WMI Filters

A common mistake with WMI/CIM filters is: PS>  Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceId=C:" Get-WmiObject :...

read more
1 2 3 9