In Windows Server 2022 some users have this problem.
This workaround seem to work (read the whole post before applying):
- In Task Scheduler go to Task Scheduler Library -> Microsoft -> Windows -> Backup -> Properties -> Settings and Check the box “Allow task to be run on demand”
- Open cmd and type this command:
schtasks /create /F /RU SYSTEM /RL HIGHEST /SC onevent /EC Application /MO "*[System[Provider[@Name='Microsoft-Windows-Backup'] and (EventID=517)]]" /TN "Microsoft\Windows\Backup\Retry_Backup" /TR "schtasks /run /tn \"Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup\""
PS: EventID in the command refere to the Event ID you can see in Event Viewer when the backup task fail. If this is NOT 517 (fail to get exclusive lock on EFI), then this workaround might not be the one for you.