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.
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.