Windows PowerShell includes the ability to query WMI on the local and remote machines.


Local Machine

Simply enter the command replacing the query as required.

Get-WmiObject -query "SELECT * FROM Win32_OperatingSystem"




Remote Machine

Simply enter the required query and provide the ComputerName parameter.

Get-WmiObject -query "SELECT * FROM Win32_OperatingSystem" -ComputerName ComputerName



Troubleshooting

It is possible to see any errors within the PowerShell output.