Search code examples
amazon-web-servicespowershellaws-ssm

Installing .exe file using Powershell Script


I have tried to install .exe file on multiple machines hosted on AWS via System Manager. But it won't work. Can anyone please correct this script to installed on SSM.

Start-Process -FilePath "example.exe" -WorkingDirectory "C:\Users\Administrator\Documents" /S  -PassThru

When i tried this script into the Server. I get installation prompt. enter image description here


Solution

  • have you tried 'Start-Process -FilePath "example.exe" -ArgumentList "/S" -WindowStyle Hidden'