Welcome › Forums › General PowerShell Q&A › Run .exe silently in Remote PowerShell
This topic contains 4 replies, has 4 voices, and was last updated by
I'm trying to run the Adobe Reader Cleaner in silent mode while in a Remote Session and Set-ExecutionPolicy RemoteSigned.
The command line would be:
AdbeArCleaner_v2.exe /silent /product=1
How do I launch that within a remote PowerShell? I'm trying to remove software without user interaction.
Invoke-Command should do the trick.
you can try with psexec:
PsExec.exe \\$userComputer -n 15 -s -d "\\$userComputer\$destinationFolder\$filename" DESKTOPSHORTCUT="1" /quiet
You do know that psexec was one of the tools used in the NotPetya attack right?
The problem with PsExec is that it might be flagged as "malware" in some environments.
The topic ‘Run .exe silently in Remote PowerShell’ is closed to new replies.