|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Install Software on a Remote Computer
Hi,
I would like to install software in remote machine without using any remote login software( like damware, remote desktop. etc..). I run this script. but i get error mgs only. can you help me. Script Code Const wbemImpersonationLevelDelegate = 4 Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objConnection = objwbemLocator.ConnectServer _ ("WebServer", "root\cimv2", "fabrikam\administrator", _ "password", , "kerberos:WebServer") objConnection.Security_.ImpersonationLevel = wbemImpersonationLevelDelegate Set objSoftware = objConnection.Get("Win32_Product") errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True) Show quote
"kannadhasan.k" <kannadhasa***@discussions.microsoft.com> wrote in message Whatever they say, the error mgs are there for a purpose. Namely to help you news:260746D9-4F0A-4FBF-9BA1-055F1AAD145D@microsoft.com... > Hi, > I would like to install software in remote machine without using any > remote > login software( like damware, remote desktop. etc..). > > I run this script. but i get error mgs only. can you help me. > > Script Code > Const wbemImpersonationLevelDelegate = 4 > > Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") > Set objConnection = objwbemLocator.ConnectServer _ > ("WebServer", "root\cimv2", "fabrikam\administrator", _ > "password", , "kerberos:WebServer") > objConnection.Security_.ImpersonationLevel = > wbemImpersonationLevelDelegate > > Set objSoftware = objConnection.Get("Win32_Product") > errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True) (or to help us help you) to determine the problem. So, what are these error mgs? /Al I'm trying to use the same script and I'm getting the following error:
Script: c:\test\run.vbs Line: 4 Char: 1 Error: The RPC server is unavailable. Code: 800706BA Source: SWbemLocator Any help would be appreciated. Thanks Show quote "Al Dunbar" wrote: > > "kannadhasan.k" <kannadhasa***@discussions.microsoft.com> wrote in message > news:260746D9-4F0A-4FBF-9BA1-055F1AAD145D@microsoft.com... > > Hi, > > I would like to install software in remote machine without using any > > remote > > login software( like damware, remote desktop. etc..). > > > > I run this script. but i get error mgs only. can you help me. > > > > Script Code > > Const wbemImpersonationLevelDelegate = 4 > > > > Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") > > Set objConnection = objwbemLocator.ConnectServer _ > > ("WebServer", "root\cimv2", "fabrikam\administrator", _ > > "password", , "kerberos:WebServer") > > objConnection.Security_.ImpersonationLevel = > > wbemImpersonationLevelDelegate > > > > Set objSoftware = objConnection.Get("Win32_Product") > > errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True) > > Whatever they say, the error mgs are there for a purpose. Namely to help you > (or to help us help you) to determine the problem. So, what are these error > mgs? > > /Al > > > |
|||||||||||||||||||||||