Run .exe silently in Remote PowerShell

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Ben Camareno Ben Camareno 2 weeks, 5 days ago.

  • Author
    Posts
  • #74471
    Profile photo of Casey
    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
    Profile photo of Ivan
    Ivan
    Participant

    Invoke-Command should do the trick.

  • #74479
    Profile photo of Brad
    Brad
    Participant

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

    • #74495
      Profile photo of Ben Camareno
      Ben Camareno
      Participant

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

  • #74482
    Profile photo of Ivan
    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.