Upgraded to 2.1.2 last night and went to add a new schedule, but I’m unable to define the Run As account. Script is not set to use the Integrated environment, but when I add or edit a schedule there is no Run As section anymore. I can probably still modify the schedules.ps1 file, but anyone else experiencing this? I checked the GitHub issues page and didn’t see anything specific to the credential/RunAs scenario.
Yes I do. I did try setting the Run As to default/blank but I still wasn’t seeing the option in the schedules. As long as it actually uses the Run As account defined, then I’m good. I was just thrown because in previous versions the schedule would show my various Run As accounts. If “default” now means the default you’ve defined for the script, then good to know!
I’m working with version 2.5.3, I have configured RunAs accounts for some scripts and when scheduling them it’s not working. When I’m running them manually I can see they’re invoked as the configured RunAs account and for the schedules they’re missing. When I edit the schedules.ps1 manually and add the -Credential option, the schedules are working. Is there some bug or am I missing something?
thanks for your quick reply. Yes, -Credential option has to be set manually in schedules.ps1. Should this be set automatically when a script has a conigured RunAs account or should the invokation of the script happen under the RunAs account automatically when creating a schedule for the script in the GUI? Maybe some screenshots: