Remote WMI connection problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top