Trying to setup a Scheduled Task to use a Managed Service Account and I got the error
Register-ScheduledTask : The filename or extension is too long
Turns out the name of the service account (10 Characters ) was too long , changed it to 5 Characters fixed this!