Remote WMI connection problem

  • Thread starter Thread starter Jen
  • Start date Start date
J

Jen

I am having trouble connecting to a remote computer running XP SP2, firewall
and AV are disabled. I am running the following on a Windows 2003 SP1
server. I have domain admins rights. I can open a remote computer management
console so rpc is working. When I run the script it times out and gives a
RPC error.

strComputerName = InputBox("Please enter the machine","Machine Name")
Set strWMITest = GetObject("WinMgmts://" & strComputerName)
If Err.Number <> 0 Then
WScript.Echo "Error connecting to WMI!!!"
Else
WScript.Echo "WMI found continuing"
End If
 
Back
Top