Hi,
Would anyone have an example of a powershell script that runs a batch file on a remote server ?
I would like to run this using SAM.
Thank you,
Gino
Capturing the output from the batch file in the remote PowerShell script would be extremely difficult, if not impossible. Have you considered porting the actions of the batch file into the PowerShell script instead?
So instead of trying to run a batch script that is located on the remote server I should run the commands (there are placed in the batch script) from the powershell script itself?
Thanks,
-Gino
Yes. That is correct. That would be the recommended approach.