In my last two posts, I demonstrated how easy it is to reset a password on a domain controller and a Windows 8.1 machine with the Utilman.exe password reset hack and with the free ntpasswd tool. Today, I will give you a few tips on how you can prevent reset hacks.
Profile gravatar of Michael Pietroforte

Michael Pietroforte

Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience in IT management and system administration.
Profile gravatar of Michael Pietroforte

Just in case you think that this trick is based on a security hole and are wondering why Microsoft doesn’t prevent this age-old trick, there is a simple reason. It is impossible to prevent such manipulations if an attacker has physical access to a Windows computer. By the way, it is interesting to note that some third-party tools for changing passwords, such as the Trinity Rescue Kit, no longer work properly on Windows 8 and Windows 8.1 (you can still set blank passwords with these tools). Perhaps Microsoft sees such tools now as a problem rather than a solution.

However, the Utilman.exe trick and the Sticky-Keys trick still work. If you are afraid that script kiddies (perhaps your admin colleagues) will use these tricks to gain admin access to your servers and desktops, there are a few things you can do to increase security significantly and lock out these first-grade hackers.

I am aware of four countermeasures: restrict physical access, encrypt system drives, change the BIOS settings, and protect your SAM database with the SysKey utility.

Restrict physical access ^

Restricting physical access to servers is essential because all other methods can’t stop an experienced hacker. Servers often have locks that allow you to protect the machine, but the locks are usually rather simple. In my view, servers belong in lockable server racks, which have better locks. However, there is no unbreakable lock.

Your second security perimeter, therefore, is to ensure that only authorized personnel have access to server rooms. The problem is that cases exist where external people—cleaning personnel, the repair technician for the aircon, and so on—need access to a server room. Since you now know how easy it is to gain access to your servers with password reset tricks, you understand how important it is for trustworthy personnel from your company to always keep an eye on externals when they are in a room with servers.

Protecting desktops physically is a bit more difficult, although various solutions exist to do so. At the very least, computers at public places, such as training rooms, should be protected this way.

Encrypt the system drive with BitLocker ^

In my view, encrypting all system drives, desktops, and servers is a must for various reasons. Encryption with BitLocker is the most secure way to prevent password reset hacks because an attacker can’t just boot up a second operating system and manipulate an unprotected Windows installation.

Many admins still shy away from BitLocker because of the additional management work. However, BitLocker is a mature technology that can be easily deployed, and it rarely causes problems once it is properly configured. If you don’t have the resources to encrypt all your desktops, you should at least protect your servers. Just take into account that if an attacker uses the Utilman trick on a desktop, he can easily install a keylogger, and if an admin then logs on…

One problem with BitLocker is that not all Windows editions support it. Also, if the computer doesn’t have a TPM chip, handling BitLocker is cumbersome because either you always need to enter a password when the machine boots up or you have to insert a USB stick with the startup key.

You should also know that BitLocker hacks exist. The methods I have heard of require an attacker to have physical access to the machine twice. Between these two incidents, a regular user has to log on to the machine so that the attacker’s hacking tool can intercept the encryption key. However, hacks of this nature have become much more difficult because of UEFI, and, in any case, such attacks require profound technical knowledge. It is not very likely that one of these highly skilled hackers would be interested in your machines. However, it can’t be wrong to always have several security perimeters in place.

Change BIOS settings ^

Another option is to ensure that a potential attacker can’t boot up a machine from external media by changing the corresponding BIOS settings. Of course, you then also have to protect the BIOS with a password. If you want to do this remotely, you can use your vendor’s out-of-band management tools. Some manufacturers also allow you to automate the task with bulk management tools and scripts, and you might even be able to use PowerShell to modify BIOS settings. Below is a list of links that help you get started. If you want to change the BIOS settings on a large number of computers, I recommend contacting your vendor. Some PC manufacturers and server vendors offer a variety of systems management tools, and it can be difficult to find the best tool for the task.

Note that various BIOS hacking tools exist that an attacker can use to change the BIOS settings even if it is protected with a password. And, if an attacker has access to the hardware, physical attacks are possible. But we are we are leaving the territory of first-grade hacking here, which is why protecting the BIOS is still a must. The vast majority of attacks from script kiddies. Nevertheless, you can add another security layer by using the SysKey utility.

Use the SysKey utility ^

The SysKey utility might be a bit outdated, but it can still be helpful in some environments because script kiddies might not know how to handle it. It allows you to move the SAM database encryption key to a USB stick. Whenever the server boots up, you will have to insert the USB stick. Another option is to store the encryption key on the computer and set a password to access it. With both methods, you have to be at the computer whenever you need to reboot it. Thus, if you want to reboot a server remotely, you need KVM access or you use an out-of-band management tool.

The SysKey tool is so old that it expects a diskette in drive A: to store the SAM database encryption key. However, you can easily assign the drive letter A: in Disk Management to your USB stick.

 Change drive letter to A
Change drive letter to A:

To start the SysKey utility, press SHIFT + R and then type syskey. You then have to decide if you want to store the encryption key on a USB stick or protect the key with a password.



When the machine boots up, you will either have to insert the USB stick or enter a password.

Startup Key DiskStartup password

SysKey at startup

Note that even if you protect the SAM database this way, an attacker can still manipulate the database with various hacking tools by setting a blank password. However, since an additional password is needed to boot up the server, you have an extra layer of protection.

Of course, this method is not very practical for a large number of computers. However, it can be useful if you want to protect a single server with a Windows version that doesn’t support BitLocker and that you placed in an office where everyone has physical access. Just keep in mind that someone has to be at the computer if it needs to be rebooted.

Conclusion ^

The best and most secure way to prevent password reset hacks is to enable BitLocker on the system drive and disable the start from DVD in the BIOS. Without these security measures, you risk having anyone in your organization gain administrator rights without much effort.

Do you know of another way to prevent password reset hacks?

Win the monthly 4sysops member prize for IT pros


  1. Profile gravatar of Paolo Maffezzoli
    Paolo Maffezzoli 3 months ago

    Just an update about Dell CCTK described in Change BIOS settings.

    Dell Client Configuration Toolkit ( aka CCTK ) is now part of the Dell Client Command Suite.
    Here the new link :


    Users who have LIKED this comment:

    • avatar

Leave a reply

Your email address will not be published. Required fields are marked *



Please ask IT administration questions in the forum. Any other messages are welcome.

© 4sysops 2006 - 2017

Log in with your credentials


Forgot your details?

Create Account