I am trying to connect to the WMI Service on a remote PC but my script hangs at this line (GetObj("winmgm ts:\\" & $strComputer & "\root\cimv 2"). The service looks like it's running but I am not able to restart it. Usually a reboot or a repair works fixes the issue.
I come across a PC in this state from time to time so I would like to be able to programmaticall y detect if the WMI service is corrupt.
Thanks in advance!
I come across a PC in this state from time to time so I would like to be able to programmaticall y detect if the WMI service is corrupt.
Thanks in advance!