Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Get-WMIobject

Get-WMIobject - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-WMIobject

Description
Get WMI class information

Usage


Options


Example(s)
Display information about all processes:

PS C:\>get-wmiobject win32_process

Display information about all processes running on the machine 'Server64':

PS C:\>get-wmiobject win32_service -computername Server64

As above but passing credentials:

PS C:\>get-wmiobject win32_service -credential SS64\Simon -computer Server64

Display information about the Alerter service:

PS C:\>get-wmiobject -query "select * from win32_service where name='alerter'"

Stop the Alerter service:

PS C:\>(get-wmiobject win32_service -filter "name='alerter'").StopService()

Display all WMI classes in the root/default namespace:

PS C:\>get-wmiobject -namespace "root/default" -list

Display BIOS and Memory information:

PS C:\>get-wmiobject win32_bios | format-list *
PS C:\>get-wmiobject Win32_ComputerSystem
PS C:\>get-wmiobject Win32_PhysicalMemory