If you see an error message – An error has occurred setting the element data, The value is protected by Secure Boot policy and cannot be modified or deleted while trying to Turn Off Data Execution Prevention (DEP) using bcdedit in Windows 10, then this post may be able to help you.
The value is protected by Secure Boot policy and cannot be modified or deleted
You need to disable Secure Boot first and then run the commands.
Warning if you are disabling Secure Boot
After disabling Secure Boot and installing other software and hardware, it may be difficult to re-activate Secure Boot without restoring your PC to the factory state. Also, be careful when changing BIOS settings. The BIOS menu is designed for advanced users, and it’s possible to change a setting that could prevent your PC from starting correctly. Be sure to follow the manufacturer’s instructions exactly.
- Go to Settings > Windows Update, and check if you have anything to download, and install. OEMs send and update the list of trusted hardware, drivers, and operating systems for your PC.
- Once done, you need to go to the BIOS of your PC.
- Go to Settings > Update & Security > Advanced Startup options.
- Then you click on Restart Now, it will reboot your PC, and offer you all these advanced options.
- Select Troubleshoot > Advanced Options.
- This screen offers further options which include System Restore, Startup repair, Go back to the previous version, Command Prompt, System Image Recovery, and UEFI Firmware Settings.
- Select UEFI Firmware Settings, and it will take to the BIOS.
- Every OEM has its own way of implementing the options. Secure Boot is usually available under Security / Boot / Authentication Tab.
- Set it to Disabled.
- Save changes and exit. The PC will reboot.
After this, you can run those commands or change your graphics card or any other hardware which you believe is giving you trouble. Make sure to follow the same steps again, and this time enable the Secure Boot.
Hope this clarifies things.
- Tags: Errors