Run .exe silently in Remote PowerShell

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

 
Participant
1 year, 4 months ago.

  • Author
    Posts
  • #74471

    Participant
    Points: 0
    Rank: Member

    Hello!

    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.

  • #74474

    Participant
    Points: 1
    Rank: Member

    Invoke-Command should do the trick.

  • #74479

    Participant
    Points: 2
    Rank: Member

    you can try with psexec:
    PsExec.exe \\$userComputer -n 15 -s -d "\\$userComputer\$destinationFolder\$filename" DESKTOPSHORTCUT="1" /quiet

    • #74495

      Participant
      Points: 0
      Rank: Member

      You do know that psexec was one of the tools used in the NotPetya attack right?

  • #74482

    Participant
    Points: 1
    Rank: Member

    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.