How To Install Software Remotely In Windows?

Asked By 0 points N/A Posted on -
qa-featured

I want to install a software remotely from one PC to another. I have the user rights and their credentials. Please provide me guidance for how to install software remotely.

SHARE
Answered By 0 points N/A #160247

How To Install Software Remotely In Windows?

qa-featured

It is not directly possible to do so. But you can use the scripts and file up the software in the remote folder asking each user to install the software by itself. You can use the following code to install.

strComputer = "PC-Name"

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\" & PC-Name & "rootcimv2")

Set objSoftware = objWMIService.Get(“Product_type")

errReturn = objSoftware.Install(“Setup_PATH",,True)

Wscript.Echo errReturn

In the above code Replace PC-Name with the name of the remote PC

Replace Product_type with the type of the product (Mostly W32)

Replace Setup_PATH with the path of the setup file

Related Questions