header image

Using WQL

Posted by: | October 30, 2013 | No Comment |

WMI Query Language – WQL – is used to either form a query directly or indirectly in the –Filter parameter of Get-WmiObject and Get-CimInstance. $query = “SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3″Get-CimInstance -Query $query OR using the –Filter … Continue reading

under: PowerShell and WMI, PowerShell V3, PowerShell v4