Search code examples
powershellinstallationcmd

how to remove popup on execution of a setup command line powershell


when i start this exe

Start-Process -FilePath 'c:\temp\chrome_installer.exe' -ArgumentList '/silent', '/install' I see a popup asking to run how can suppress this ?

i get a popup asking to run or cancel is there a way to remove this ? Regards


Solution

  • Without a actual screenshot of the exact popup that is appearing we honestly can only guess at an answer, however, based on experience its most likely because the file is not trusted.

    If this is the popup then you can do one of the following things. PowerShell: use the unblock-file command. Manual: Right-click the executable, select properties, and check the 'unblock' checkbox and click ok.

    Full tutorial: https://winaero.com/how-to-unblock-files-downloaded-from-internet-in-windows-10/

    enter image description here