Apr 20 2020 11:14 PM
Hi All,
I need a help to install the one .exe installer on my remote machines which required be setup with Azure Devops activity. I want for exe but not for msi.
I tried below option but couldn't make it successful.
PowerShell Script:
Invoke-Command -ComputerName $computer -ScriptBlock { Start-Process C:\Users\someexe.exe -ArgumentList /silent -Wait -NoNewWindow }
Error:
Start-Process : This command cannot be run due to the error: The requested operation requires elevation.
At line:16 char:1
+ Start-Process C:\Users\someexe.exe -ArgumentLi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
@All please help me on this.
Apr 21 2020 12:51 AM
As the error message clearly suggests, you need to run this cmdlet elevated (as admin) on the remote machine.
Apr 21 2020 02:23 AM
I have tried that and it removed the error but my requirement is not achieved as it launch the installer in interactive mode.
Is there any option to run in non-inerecative mode.
Apr 21 2020 08:44 AM
You can use tools such as psexec for that.
Apr 21 2020 08:48 PM
SolutionApr 22 2020 10:23 PM
Thank You. I tried to go more detailed in exe and found the solution to do the non-interactive mode installation.
Apr 23 2020 04:10 PM