I have a problem with the creation of schedules by the graphical interface.
Regardless of the script and the parameters chosen, the schedule is added to the schedules.ps1 file but does not appear in the Automation > Schedules part of the administration portal.
Also, this schedule is never executed. Nothing appears in the jobs section.
I don’t have any trouble running scripts manually…
Error Deserializing C:\ProgramData\UniversalAutomation\Repository\.universal\schedules.ps1
Cannot bind parameter because parameter 'Credential' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3".
After removing -Cred ‘$Admin’ from schedules.ps1, I see my schedule appear but it does not launch since the Cred parameter is missing.
The problem here is that the New-PSUSchedule cmdlet has a -Credential parameter. I’ve run into this problem myself and we should probably figure out how to fix it.
The workaround is to rename your -Crednetial parameter in your script to something else. Like this: