This page provides the following script (below) to run. This script fails on Windows 10 Pro. The command mountvol does not have a switch of /s which is the first line in the list of commands provided. So, the mounting to X: fails which makes the rest of the script commands fail.
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Please notice the amount of closed issue tickets regarding this exact issue:
@toddalbers. Firstly disable secure boot and enable legacy boot mode in bios
Just now i entered those commands with admin rights, ALL commands worked properly.
i enabled Windows Defender Credential Guard EFI. here is the screenshot
@toddalbers : is there a chance that you have tried running cmd.exe as a regular user, without selecting to run the program as Administrator?
Another possible explanation for your issue might be that your computer does not have an UEFI BIOS, although that would have to be a relatively old computer.
Anyway, I am fairly certain that your issue does not prove the documentation to be false.
You are also more likely to get help from other Microsoft Social or TechNet forum pages.
@illfated thank you for your help with this!!