Invoke an Executable on Remote Computer without Invoke-Command

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 2 months, 1 week ago.

  • Author
    Posts
  • #54377
    Profile photo of Gyan
    Gyan
    Participant

    In our environment most of the servers are not having PSRemoting enabled. So if I want to run a batch file or any executable file remotely then i can't use Invoke-Command for this purpose. Is there any other alternative to do this in PowerShell?
    I don't want to use PsExec tool.

  • #54378
    Profile photo of Daniel Krebs
    Daniel Krebs
    Participant

    You might be able to create scheduled tasks via CIM sessions with the PowerShell cmdlets of the built-in ScheduledTasks module. The output of the commands you're running remotely can be collected via file shares like C$ or Admin$, or send to a remote server or web API.

You must be logged in to reply to this topic.