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 1 week, 2 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.