Moving scheduled scripts

Product: PowerShell Universal
Version: 1.5.0

Hi.

We reorganized our scripts folder structure last week and moved lots of scripts to different places than before. Now we realized that we have lots of warnings like this in our logs:

Invalid configuration: C:\ProgramData\UniversalAutomation\Repository\.universal\schedules.ps1

Script ‘_Migrated_\TOPdesk_Workspace1synk.ps1’ not found

All these rows now seem to be vanished from our schedules.ps1. Is it the case that when moving scripts we always have to manually update the schedules as well for this to not happen? This feels like something that should be handled automatically. Or did we do something wrong?

That is normal. The schedules.ps1 file has the path defined on creation from GUI. I am not sure if PSU can determine what scripts you moved and where you moved them if done outside the GUI. Luckily the schedules.ps1 file can be easily fixed to correct the paths and errors will go away and schedules will run again.

well, the big problem is that it now automatically wiped those rows from schedules.ps1. I had to recover the file from backup not to have to manually recreate all the schedules…

1 Like