Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem running an install script remotely

Status
Not open for further replies.

Guy1983

Programmer
Jan 7, 2005
13
US
strComputer = "130.11.184.22"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objSoftware = objWMIService.Get("Win32_Product")
errReturn = objSoftware.Install("L:\DOMINO\Notes653\Lotus Notes 6.5.3.msi",,True)
Wscript.Echo errReturn


Above is the script that I am trying to run from my XP machine (SPII). I have shut down the firewall on 130.11.184.22 to allow for an incoming script to execute. An error box keeps popping up when I try to run it. Here is what the error box sais:

Script: C:\...\installTest.vbs
Line: 2
Char: 1
Error: Permission denied: 'GetObject'
Code: 800A0046
Source: Microsoft VBScript runtime error

I have exhausted the resources at the windows scripting center online. I don’t know what do do. Does anyone know what is wrong with my script.?


Any help would be greatly appreciated.

Thank you,

Guy1983
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top