Run .exe silently in Remote PowerShell

This topic contains 4 replies, has 4 voices, and was last updated by  Ben Camareno 3 months, 2 weeks ago.

  • Author
    Posts
  • #74471

    Casey
    Participant

    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

    Ivan
    Participant

    Invoke-Command should do the trick.

  • #74479

    Brad
    Participant

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

    • #74495

      Ben Camareno
      Participant

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

  • #74482

    Ivan
    Participant

    The problem with PsExec is that it might be flagged as "malware" in some environments.

You must be logged in to reply to this topic.