Home All Groups Group Topic Archive Search About

Install Software on a Remote Computer



Author
16 Oct 2007 10:56 AM
kannadhasan.k
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)

Author
17 Oct 2007 6:02 AM
Al Dunbar
Show quote
"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
Author
27 Nov 2007 4:00 PM
senator_pitt
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
>
>
>

AddThis Social Bookmark Button