Seems to be a microsoft bug. See here - https://support.sophos.com/support/s/article/KB-000045621?language=en_US
Windows Backup failed to get an exclusive lock on the EFI system partition (ESP) - Symantec Endpoint Protection
Hello everyone.
I have 30 odd Windows 10 & Windows 2019/2022 Servers that get this error randomly when performing a Bare Metal backup using Windows Backup to internal and external hard drives.
Error: Windows Backup failed to get an exclusive lock on the EFI system partition (ESP)
If I re-run the backup immediately. It works fine 9 times out of 10.
Anyone else having the same issue?
Kind regards
Jesse
Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
6 answers
Sort by: Newest
-
Espen 6 Reputation points
2024-06-06T08:28:08.9966667+00:00 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.
-
Tejerias 0 Reputation points
2024-05-07T10:30:23.7833333+00:00 I have the same problem. Do you finally solve it?
-
Harry Leonard 1 Reputation point
2022-10-02T00:07:33.927+00:00 Final solution...in backup settings...choose "Let me choose", rather than "recommended" Windows settings. Hope this works for you!