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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

install a software on the domain computer!

Status
Not open for further replies.

hartlen

IS-IT--Management
Aug 31, 2004
24
CN
how can i install a software on the domain computer whit a .exe file ,can i use the policy to do this ,i try to write a startup script but it cannt run ,my script likes this, where errores.

set WshShell = CreateObject("WScript.Shell")
WshShell.run "runas /user:sins\installer ""cmd /c start /wait \\fileserver\Project\msi_PCAlert4073\Setup.exe -s -f1\\fileserver\Project\msi_PCAlert4073\Setup.iss"""
WshShell.appActivate "runas"
wscript.sleep 200
WshShell.Sendkeys "instaler" 'password
wscript.sleep 200
WshShell.Sendkeys "{ENTER}"
i use the runas to give the domain computer the installed policy

when a execute the command on local machine like this

runas /user:sins\installer ""cmd /c start /wait \\fileserver\Project\msi_PCAlert4073\Setup.exe -s -f1\\fileserver\Project\msi_PCAlert4073\Setup.iss""

it can install the software on the local machine

where i make it on a local group policy it also can work .


thanks all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top