How to fix «The specified account name is not valid» for Task Scheduler in Windows 10?

How did I fix it.