Disable Driver Signature Enforcement in Windows 11 Safely

Mudin Saiful

A cartoon rubber stamp lifted above a paper with an empty stamp spot illustrating how to disable driver signature enforcement in Windows 11

Tested on Windows 11 version 26H2 (OS Build 26300.9974), Pro edition.

Driver signature enforcement is one of those features you never notice until it gets in your way. Every driver that loads into Windows has to carry a digital signature, a kind of stamp that says who made it and that nobody changed it afterwards. That check quietly keeps a lot of nasty stuff out of the deepest part of your system.

There are times when you need to get past it anyway. Maybe you have an old scanner or a USB gadget whose maker stopped updating the driver years ago. Maybe you’re a developer testing your own driver, or a hobbyist flashing a phone or a microcontroller with a tool that ships an unsigned driver. You right-click the INF file, choose “Install”, and Windows refuses with a message about a missing or invalid signature. Even worse, the device shows up in Device Manager with a yellow mark and Code 52.

In this article, we’ll cover the two ways that actually work in Windows 11: the one-time switch in Startup Settings (the F7 key) and the permanent Test Mode with “bcdedit /set testsigning on”. I tested both on my own PC, including what changes behind the scenes, how to prove the F7 trick only lasts one boot, and how to put everything back the way it was.

Before You Disable Driver Signature Enforcement

So, you’re ready to install that unsigned driver? Read on, because two things on your PC decide how smooth this goes: Secure Boot and BitLocker. Secure Boot is a firmware feature that only lets trusted code start your PC. When it’s on, Windows blocks the permanent method and you’ll see “The value is protected by Secure Boot policy and cannot be modified or deleted”. BitLocker is the drive encryption in Windows, and changing how the PC boots can make it ask for your 48 digit recovery key.

It’s also advisable to be honest with yourself about the driver. Turning off the signature check isn’t something Windows lets you do for one driver only. It applies to the whole system for as long as it’s off, so any driver can load, good or bad. I strongly recommend doing this only for a driver you trust, from the device maker or from your own build, and never for a random file a forum post told you to grab. Here’s how to check your PC first:

Check Secure Boot and BitLocker in one go

Checking Secure Boot and BitLocker status in Command Prompt before disabling driver signature enforcement

Open Command Prompt as administrator and run the two commands below. The first one answers True or False for Secure Boot. On my PC it said “False” (number 1). The second one shows the BitLocker status of drive C:, and mine said “Protection Off” (number 2), so I didn’t need a recovery key at any point.

powershell -NoProfile -Command Confirm-SecureBootUEFI
manage-bde -status C:

Or look at Secure Boot State in System Information

Secure Boot State showing Off in Windows 11 System Information

If you prefer clicking, press Windows + R, type “msinfo32” and press Enter. In “System Summary”, find “Secure Boot State” (number 1). “Off” means the permanent method will work. “On” means you’ll need to switch Secure Boot off in your BIOS or UEFI first, which I explain later.

Note: If BitLocker says “Protection On”, write down your recovery key before you start. You can find it at aka.ms/myrecoverykey if your PC is linked to a Microsoft account, or suspend protection with “manage-bde -protectors -disable C: -RebootCount 1” so it doesn’t ask during the next restart.

How to Disable Driver Signature Enforcement Using Startup Settings (F7)

This is the method I would strongly suggest for most people. It turns the signature check off for one boot only. You install your driver, and the next time you restart, Windows goes back to normal without you touching anything. Nothing gets saved to your boot settings, and Secure Boot doesn’t block it.

The downside is the same thing. If the driver needs to load at every startup, Windows will refuse it again after a normal restart, and you’ll be back to Code 52. In that case you’ll want Test Mode from the next section. The process has several steps:

Open the Recovery page

The Recovery item in Windows 11 Settings under System

Press Windows + I to open Settings. Go to “System” and scroll down until you see “Recovery”. Click on it (number 1).

Click Restart now next to Advanced startup

The Restart now button next to Advanced startup in Windows 11

Under “Recovery options”, look for “Advanced startup” and click on “Restart now” (number 1). A quicker way is to hold the Shift key while you click on “Restart” in the Start menu power button. Both take you to the same blue screens.

Confirm the restart

Confirming the restart to open Advanced startup in Windows 11

Windows warns you to save your work. Close anything you have open, then click on “Restart now” (number 1). If you don’t want to restart yet, click on “Close”.

Choose Troubleshoot

Choosing Troubleshoot on the Choose an option screen in Windows 11

After a short “Please wait” screen you will see “Choose an option”. “Continue” just boots Windows normally, so ignore it. Click on “Troubleshoot” (number 1).

Open Advanced options

Choosing Advanced options on the Troubleshoot screen in Windows 11

The next phase is to click on “Advanced options” (number 1). Be careful on this screen. “Reset this PC” and “Cloud rebuild” reinstall Windows, and you definitely don’t want those by accident.

Pick Startup Settings

Choosing Startup Settings in Windows 11 Advanced options

From there, click on “Startup Settings” (number 1). On build 26300 this screen also has “Quick machine recovery”, “Uninstall Updates”, “UEFI Firmware Settings” and “System Restore”. We only need Startup Settings.

Restart into Startup Settings

The Restart button in Startup Settings listing Disable driver signature enforcement

This screen just lists what you’ll be able to change, and “Disable driver signature enforcement” is in the list (number 1). Click on “Restart” (number 2). If your drive is protected by BitLocker, this is where Windows may stop and ask for the recovery key.

Press 7 or F7

Pressing 7 or F7 to disable driver signature enforcement in Windows 11

After the restart you get a numbered list. Press 7 or F7 for “Disable driver signature enforcement” (number 1). You can use the number keys or the function keys F1 to F9. Pressing Enter instead boots Windows normally, and 4 is Safe Mode if that’s what you were after.

My experience: Some people on the Microsoft forums reported that option 7 only rebooted the PC on early 24H2 builds. On my 26H2 PC it worked the first time. I pressed 7, the Windows logo showed up, and about 30 seconds later I was on the desktop. No watermark, no message, nothing that tells you the check is off. That’s why I went looking for proof.

Check that the signature check is really off

DISABLE_INTEGRITY_CHECKS in the system start options after booting with F7 in Windows 11

Open Command Prompt as administrator and run the two commands below. “bcdedit /enum {current}” shows your saved boot settings, and nothing new appears there after pressing F7. The second command shows the options Windows actually started with. On my PC the last word was “DISABLE_INTEGRITY_CHECKS” (number 1), which is exactly what the F7 key does. The “testsigning No” line in my list is left over from an earlier test of mine, so don’t worry if you don’t have it.

bcdedit /enum {current}
reg query HKLM\SYSTEM\CurrentControlSet\Control /v SystemStartOptions

Now install your driver. Right-click on the INF file and choose “Install”, or use “Update driver” in Device Manager and point it to the folder. If Windows shows a red warning that it can’t verify the publisher of the driver, and you trust the driver, choose to install it anyway. I didn’t install a real unsigned driver for this test, because I won’t run drivers from the internet on my PC just for a screenshot.

Restart normally and check again

DISABLE_INTEGRITY_CHECKS gone after a normal restart in Windows 11

Once you’re done, restart your computer as usual. Then run the “reg query” command again. On my PC “DISABLE_INTEGRITY_CHECKS” was gone (number 1), and only the normal options were left. So, the F7 switch really does last one boot, and you don’t have to undo anything.

How to Disable Driver Signature Enforcement Permanently by Using Test Mode

If your driver has to load every time Windows starts, you need Test Mode. It’s a boot setting called “testsigning” that tells Windows to accept drivers signed with a test certificate, the kind developers make for themselves. It stays on through every restart until you turn it off.

Unfortunately, Test Mode isn’t a magic “allow everything” switch. Microsoft’s documentation says the driver still needs a signature, any test signature will do, and a completely unsigned 64 bit driver still won’t load. With Memory integrity turned on in Windows Security, Microsoft says the driver has to be test signed by you. So, Test Mode is mainly for drivers that come with a test signature, or for developers. If your driver has no signature at all, the F7 method is the one to use. Here’s what you do:

Turn on testsigning

The bcdedit testsigning on command succeeding in an administrator Command Prompt

Open Command Prompt as administrator. If you’ve never done that, here’s how to open CMD as administrator in Windows 11. Type the command below and press Enter. You should see “The operation completed successfully.” (number 1). Run “bcdedit /enum {current}” to check it, and “testsigning” should now say “Yes” (number 2).

bcdedit /set testsigning on
bcdedit /enum {current}

Note: If you get “The value is protected by Secure Boot policy and cannot be modified or deleted” instead, Secure Boot is on. You’ll have to turn it off in your BIOS or UEFI setup. You get there from “Advanced options” > “UEFI Firmware Settings”, or by pressing a key like F2, F10 or Delete while the PC starts. The option is usually under a “Security” or “Boot” tab and is called “Secure Boot”. Every brand names it a little differently, so check your manual. My PC already had Secure Boot off, so I didn’t see this error myself.

Restart and look for the Test Mode watermark

The Test Mode watermark in the bottom right corner of the Windows 11 desktop

Restart your computer. After a few moments you will see the desktop with “Test Mode” written in the bottom right corner (number 1), above the edition and build. That text means Test Mode is active. Funnily enough, the build line on mine said “Build 26100”, even though my PC runs build 26300.

Now you can install your test signed driver. As always, install it from a file you trust and only that one. Hopefully, it will load and work as it should after every restart.

Warning: While Test Mode is on, your PC accepts drivers that Microsoft never checked, and malware that sneaks a test signed driver in has an easy time. Some games with anti-cheat and some streaming apps also refuse to run in Test Mode. Don’t leave it on longer than you need.

How to Turn Driver Signature Enforcement Back On

Once your driver works, or once you’ve decided it isn’t worth the risk, switch Test Mode off. If you used the F7 method only, there’s nothing to do because a normal restart already did it.

If you turned Secure Boot off in the BIOS to make Test Mode work, turn it back on after this too. Here’s how that should go:

Turn off testsigning

Turning testsigning off with bcdedit in Windows 11

Open Command Prompt as administrator again and run the command below. You’ll see “The operation completed successfully.” (number 1). Notice that the “Test Mode” watermark is still there (number 2). That’s normal. The setting only changes at the next boot.

bcdedit /set testsigning off

Restart and confirm

Testsigning set to No and the Test Mode watermark gone after a restart

Make sure to restart your computer. Then run “bcdedit /enum {current}” again. “testsigning” now says “No” (number 1), and the watermark in the corner is gone (number 2).

Remove the leftover line (optional)

Removing the testsigning line with bcdedit deletevalue in Windows 11

Before I started, my boot settings didn’t have a “testsigning” line at all. If you want it back exactly like that, run the command below (number 1). Checking with “findstr” afterwards printed nothing, so the line is really gone. Windows works the same either way, so this step is just for tidiness.

bcdedit /deletevalue testsigning

What About nointegritychecks and Group Policy?

Many guides also tell you to run “bcdedit /set nointegritychecks on” or to change “Code signing for device drivers” in Group Policy. I didn’t use either one on my PC, and I wouldn’t count on them. The nointegritychecks option is a leftover from older Windows versions, and Microsoft’s current page about loading test signed code only documents testsigning. The Group Policy setting mainly controls the warning you see when you install a driver package, not whether Windows lets an unsigned driver load at boot.

So, if one of those guides didn’t work for you, it’s not you. Stick with F7 for a one-time install or Test Mode for a test signed driver.

Common Problems When Installing Unsigned Drivers

The driver installs with F7 but stops working after a restart

That’s the F7 method doing exactly what it should. The check comes back on at the next normal boot, and Windows blocks the driver again, often with Code 52 in Device Manager. Either repeat the F7 steps each time you need the device, or ask the maker for a signed driver. Test Mode only helps if the driver has a test signature.

Windows asks for the BitLocker recovery key

This happens when BitLocker sees the boot process change. Type the key from your Microsoft account or the printout you saved. Next time, suspend BitLocker for one restart before you go to Startup Settings or change bcdedit.

“The value is protected by Secure Boot policy”

Secure Boot is on. Turn it off in the BIOS or UEFI, run the bcdedit command again, and don’t forget to turn Secure Boot back on when you’re done with Test Mode.

Option 7 just reboots the PC

That was reported on early 24H2 builds. Install the latest Windows updates first, since it worked fine on my updated 26H2 PC. If you need help with that, my guide on how to fix the Windows Update error encountered message covers the usual blockers.

This concludes how to disable driver signature enforcement in Windows 11. For a one-off install, the F7 key in Startup Settings is the safest choice because it turns itself off at the next restart. Test Mode with bcdedit is for test signed drivers that need to load every time, and it’s worth switching off as soon as you can. Next, you would probably want to sort out the rest of your drivers properly, and my guide on how to install Windows 11 and set up drivers walks through that. If Windows still refuses your driver, write the exact error in the comments and I’ll take a look.

Leave a Comment