More Windows Utilities

WMI code creater:

WMIGen 10.0.6:

Click on Generate.

Click on run .

WMI on remote computer:

PS C:\> Get-WmiObject -Class win32_operatingsystem -ComputerName 192.168.222.144 -Credential SECURITY\administrator

PS C:\> whoami

PS C:\> Get-WmiObject -Class win32_bios -ComputerName 192.168.222.144

This we run when WMI is restricted:

PS C:\> $sess = New-CimSession -ComputerName 192.168.222.144 -Credential SECURITY\administrator

PS C:\> Get-CimInstance -CimSession $sess -ClassName win32_operatingsystem

Use WMI on Remote Computers – CIM Session:

It is also possible to force use DCOM by using CIM session option:

PS C:\> $sessionoptions = New-CimSessionOption -protocol DCOM

PS C:\> $session = New-CimSession -SessionOption $sessionoptions -ComputerName 192.168.222.144 -Credential SECURITY\administrator

PS C:\> Get-CimInstance -ClassName Win32_OperatingSystem -CimSession $session

@Saksham Dixit