G
Guest
Hi.
I need to run scripts on remote computers but i am not able to. They run
locally fine but when i try to connect to another computer on my network i
get
Permission denied: 'GetObject'. I took the job recently so i dont know
exactly the local setup but it was a mess.
All computers are XP Pro, SP2. They are connected on a domain. Both
computers have an administrator account under the same name and same
password.
I am aware of the firewall issue with SP2 default settings so i disabled
firewalls on both machines just so see if it is the part that causes
problems. (did it from control panel -> windows firewall -> disable.. dont
know if it turns off all its features) No Third party firewall is present.
Also I am able to ping the other machine fine if that counts for anything.
Before that I already used gpedit to activate remote administration for both
machines on the windows firewall in both domain and standard profile with *
ip mask for troubleshooting purposes.
Made sure following services are running on both machines:
- DCOM Server Process Launcher
- Remote Procedure Call (RPC)
- Remote Procedure Call (RPC) Locator
- Windows Management Instrumentation
- Windows Management Instrumentation Driver Extensions
The testscript i am using is:
' START
strComputer = "Cad13"
Set objWMIService = GetObject("winmgmts:"_
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colRunningServices = objWMIService.ExecQuery _
("Select * from Win32_Service")
For Each objService in colRunningServices
Wscript.Echo objService.DisplayName & VbTab & objService.State
Next
' END
I am probably missing something very simple. Sigh. Could you help please?
Tarmo
I need to run scripts on remote computers but i am not able to. They run
locally fine but when i try to connect to another computer on my network i
get
Permission denied: 'GetObject'. I took the job recently so i dont know
exactly the local setup but it was a mess.
All computers are XP Pro, SP2. They are connected on a domain. Both
computers have an administrator account under the same name and same
password.
I am aware of the firewall issue with SP2 default settings so i disabled
firewalls on both machines just so see if it is the part that causes
problems. (did it from control panel -> windows firewall -> disable.. dont
know if it turns off all its features) No Third party firewall is present.
Also I am able to ping the other machine fine if that counts for anything.
Before that I already used gpedit to activate remote administration for both
machines on the windows firewall in both domain and standard profile with *
ip mask for troubleshooting purposes.
Made sure following services are running on both machines:
- DCOM Server Process Launcher
- Remote Procedure Call (RPC)
- Remote Procedure Call (RPC) Locator
- Windows Management Instrumentation
- Windows Management Instrumentation Driver Extensions
The testscript i am using is:
' START
strComputer = "Cad13"
Set objWMIService = GetObject("winmgmts:"_
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colRunningServices = objWMIService.ExecQuery _
("Select * from Win32_Service")
For Each objService in colRunningServices
Wscript.Echo objService.DisplayName & VbTab & objService.State
Next
' END
I am probably missing something very simple. Sigh. Could you help please?
Tarmo