Application installation via Powershell


hi

i want install app on d drive of of our servers.

the app in folder named appfiles, , setup.exe

during install, user prompted 4 times:

1. confirm installation (press yes)

2. enter name of server (server1, server2 etc, can taken central text file)

3. enter name of ad domain (domain.co.uk)

4. enter name of db server (db1.domain.co.uk)

at moment, running these manually, there anyway automate using powershell? os windows 2008 server

hi,

to install software automatically using powershell can run silent mode of installer powershell. poweshell script run exe or msi in silent mode is:

$command = “cmd.exe /c d:\myinstaller.exe /s /v`”/qn”
$process = [wmiclass]“\\pcname\root\cimv2:win32_process
$process.create($command)

remember installer should have silent mode on in it.

similar thread you:

install application through powershell

http://social.technet.microsoft.com/forums/en-us/winserverpowershell/thread/7ff308c5-4d6e-48da-b1b1-6dccae51e6a2

installing executable through powershell

http://social.technet.microsoft.com/forums/hr/winserverpowershell/thread/4e024903-8393-4fe5-a5fc-49d33a5a5735

regards,

yan li


yan li

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL