Contact Info

Crumbtrail

ActiveXperts.com » Support » Network Monitor » KB Article

Knowledge Base FAQ Item #7250015

 

Q7250015: How to verify WMI access through DCOM?

To test whether you can connect to the remote computer using DCOM, run the following command in Powershell:

New-CimSession -ComputerName REMOTEMACHINE -SessionOption (New-CimSessionOption -Protocol Dcom)

or (with alternate credentials):

New-CimSession -ComputerName REMOTEMACHINE -SessionOption (New-CimSessionOption -Protocol Dcom) -Credential "DOMAIN\USER"

If you have access to the remote computer through DCOM, run the following Powershell command to verify access to WMI from DCOM:

Get-WmiObject -ComputerName REMOTEMACHINE -Query "SELECT * FROM Win32_ComputerSystem"

or (with alternate credentials):

Get-WmiObject -ComputerName REMOTEMACHINE -Credential "DOMAIN\USER" -Query "SELECT * FROM Win32_ComputerSystem"
(viewed: 6968)