Invoke an Executable on Remote Computer without Invoke-Command

This topic contains 1 reply, has 2 voices, and was last updated by  Daniel Krebs 1 year, 9 months ago.

  • Author
  • #54377


    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

    Daniel Krebs

    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.