The customer has a Powershell Script with which he can start for example a program remote. The Script works, if he starts it directly with Powershell, Powershell ISE oder Command Prompt.
Starting it with the Scheduler does not work.
What he wants to achieve:
WithPSExec he checks if the user „WizzadminHH01“ is logged on and writes the appropriate session ID in a variable.
The ID is shown correctly. If the script is run by the scheduler the ID is not shown correctly.
How has a Powershell Script to be started to execute correctly?
Windows 64-bit Agent Version R11.3, Service Pack 2, Maintenance Level 0, Build 508
Add the parameter "-accepteula" to your command in the job definition