Invoke an Executable on Remote Computer without Invoke-Command

Welcome Forums General PowerShell Q&A Invoke an Executable on Remote Computer without Invoke-Command

This topic contains 1 reply, has 2 voices, and was last updated by

 
Moderator
2 years, 2 months ago.

  • Author
    Posts
  • #54377

    Participant
    Points: 0
    Rank: Member

    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

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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.

The topic ‘Invoke an Executable on Remote Computer without Invoke-Command’ is closed to new replies.