Invoke a command line with SYSTEM privileges by clicking the "Accessibility" button on the lock screen.
By replacing Utilman.exe in the system32 directory with cmd.exe.
Double-click on ENABLE.bat to enable, and double-click on DISABLE.bat to disable.
run_as_admin: Request administrator privileges and run command.
extract_one_file: Unzip one of the files in the archive.
sfpcopy: A tool that allows copying a protected system file.
The sfpcopy tool is included in the Windows 10 IoT Core Packages, and as far as I know it's not open source, it's available from this Microsoft website.
It is located in the following directory:
14393.67.160804-2231.rs1_release_amd64fre_IOTCORE_PACKAGES.iso\Windows_10_IoT_Core_X64_Packages.msi\fil4cfed34a04a06069f08b7eca0e5b1f17\amd64_microsoft-windows-sfpcopy_31bf3856ad364e35_10.0.14393.67_none_0e3eefda7177f36e
You can manually copy sfpcopy.exe to the tools directory after the download is complete before running ENABLE.bat, otherwise the script will automatically download it via Invoke-WebRequest and extract it via extract_one_file.
- .NET Framework SDK 4.7.2 (for building run_as_admin)
- Bit7z (for building extract_one_file)
- 7z.dll (for running extract_one_file)
- Open tools\LockScreenCMDTools.sln
- Configure the Bit7z lib.
- Build.
- Copy the ouput extract_one_file.exe and run_as_admin.exe to the tools directory.
- Copy your 7z.dll to the tools directory.
You can recover lost system files with the sfc /scannow command.
