The WMI cmdlets

The WMI cmdlets have been superseded by the CIM cmdlets.

The WMI commands are:

  • Get-WmiObject
  • Invoke-WmiMethod
  • Register-WmiEvent
  • Remove-WmiObject
  • Set-WmiInstance

In addition to the commands, three type accelerators are available:

  • [Wmi]: System.Management.ManagementObject
  • [WmiClass]: System.Management.ManagementClass
  • [WmiSearcher]: System.Management.ManagementObjectSearcher

Each of the WMI cmdlets uses the ComputerName parameter to aim the operation at another computer. The WMI cmdlets also support a credential parameter and other authentication options affecting the authentication method.

Both the Wmi and WmiClass type accelerator can be written to use a remote computer by including the computer name. For example:

[Wmi]"\RemoteComputer
ootcimv2:Win32_Process.Handle=$PID" 
[WmiClass]"\RemoteComputer
ootcimv2:Win32_Process" 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.79.176