What's the successor of the "utilman.exe" method for a pre-logon console?


Novgorod

Member
Local time
7:00 PM
Posts
31
OS
Windows 11
A few years ago MS "fixed" the most widely used exploit for resetting a user password by replacing any of the "ease of access" tools (utilman.exe, osk.exe, sethc.exe and so on) with a copy of cmd.exe to get a console with system privileges. Of course you already needed file system access for that, so it was never really a security issue. Now Windows Defender is (apparently) doing a signature check and won't allow any ease of access tool to run if it has been replaced.

Did the exploit "evolve" to combat the signature check or is there no more way to get a console before logon? Again, it's purely a convenience issue, not a security issue because you can still reset the password of an existing user (and/or make him admin) via that SAM tool under Linux (and at least the built-in admin account is always a local user, even if it's an AD machine).

It's a bit of a niche use case since an "offline" console (booting another OS, including the recovery environment) should be sufficient in most cases. But there are a few edge cases which require an "online" console to interact with the running system, e.g. when the boot device is restricted or the partition is Bitlocker encrypted (via the TPM).
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
In this guide, you’re going to learn how to reset a forgotten local user login password on any Windows computer using Kali Linux.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
I literally said that.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
A few years ago MS "fixed" the most widely used exploit for resetting a user password....
Really? I've just tried it on a machine with the current RTM Windows 11 build 22631.3296 and it still works. I successfully created a new user to test this.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
Really? I've just tried it on a machine with the current RTM Windows 11 build 22631.3296 and it still works. I successfully created a new user to test this.
I don't need to use it often, so I didn't test it extensively, i.e. whether that's now default out-of-the-box behavior or whether it requires specific Defender settings. I encoutered this behavior on a domain-connected laptop with a fresh Win 11 (so it might have been a group policy thing as well) and had to use the SAM method instead.

As for the "fix", people were talking about it at least since 2019 (there's also a linked blog post from 2018 stating that Defender checks for "debuggers" attached to ease of access tools via the registry, but then it will surely also check whether the exe itself is replaced). Some sources also said that Defender must be enabled for "early protection" or something like that, but I don't know if that's default behavior (apparently not?)...
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
Some sources also said that Defender must be enabled for "early protection" or something like that, but I don't know if that's default behavior (apparently not?)...
I've not modified the Windows Security behaviour on this RTM W11 Pro machine, so apparently it's not on by default. More on Early Launch Antimalware (ELAM) here:

 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
As for the "fix", people were talking about it at least since 2019 (there's also a linked blog post from 2018 stating that Defender checks for "debuggers" attached to ease of access tools via the registry, but then it will surely also check whether the exe itself is replaced).
No, it only appear to be checking for Image File Execution Options (IFEO), not actual replacement of the .exe.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
No, it only appear to be checking for Image File Execution Options (IFEO), not actual replacement of the .exe.
Yes, the linked blog post only talks about debuggers, but many (including myself) encountered blocked execution when the exe is replaced.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
A few years ago MS "fixed" the most widely used exploit for resetting a user password

What are you actually trying to achieve?
Reset a local account's password?
If so,
- Use another Admin user account to reset the problem user account's password.​
- Make sure you have at least one spare, password-protected, Admin user account on the computer that can be logged into if all day-to-day user accounts fail to allow login.​
or
- Enable the Built-in Admin at boot and use it to reset a local user account's password.​


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
What are you actually trying to achieve?
Reset a local account's password?
Add an admin account with only having (offline!) access to the file system.

I already achieved what I needed to achieve, I was just wondering if there's possibly an easier and/or smarter way when the utilman method is blocked.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
Yes, the linked blog post only talks about debuggers, but many (including myself) encountered blocked execution when the exe is replaced.
There's a GitHub I found, where the suggestion for keeping the copy hack was:

1. Overwrite utilman.exe
2. Try the normal workaround from Lock Screen. Get blocked by Defender.
3. Return to normal Windows, open Protection History and allow the denied file to work.

PS - Running sfc /scannow will obviously clobber the hack, as it will restore the original executable.
 

My Computer

System One

  • OS
    Windows 7
There's a GitHub I found, where the suggestion for keeping the copy hack was:

1. Overwrite utilman.exe
2. Try the normal workaround from Lock Screen. Get blocked by Defender.
3. Return to normal Windows, open Protection History and allow the denied file to work.

PS - Running sfc /scannow will obviously clobber the hack, as it will restore the original executable.
If you already have admin access, you don't need the utilman hack...
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
Are we going in circles? Obviously if you're more technical, there's multiple ways to get back into a locked system. The utilman hack was originally given as a simple backdoor for non-technical users, in case they got locked out by messing up Windows changes.
 

My Computer

System One

  • OS
    Windows 7
Add an admin account with only having (offline!) access to the file system.
Understood.
Two of those methods apply.
- Make sure you have at least one spare, password-protected, Admin user account on the computer that can be logged into if all day-to-day user accounts fail to allow login.
my ditty - Create two spare local, password-protected Admin accounts [post #2] in Windows 10, 11 - TenForums
or
- Enable the Built-in Admin at boot and use it to reset a local user account's password.
Enable or Disable Built-in Administrator Account - ElevenForumTutorials

Personally, I create spare Admin accounts on each computer so I am fully prepared for corruption in my day-to-day user accounts.
But, if I had not prepared, I'd use the Enable the Built-in Admin at boot solution.
I'd then login & create new user accounts using whichever of those Admin accounts was available.


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Two of those methods apply.
Actually only Enable the Built-in Admin at boot applies (I said only offline file system access is possible in that scenario).

However, the recovery boot console won't work with TPM-secured Bitlocker (if you don't have the recovery key). Even if you can read the Bitlocker volume master key (VMK) from the TPM (not trivial but possible), Windows has no tool to unlock/mount the volume using the VMK. Apart from forensic software, there is only a single tool in existence to decrypt Bitlocker with a VMK, which only works in Linux (dislocker). In that case you might as well use the SAM tool in Linux, which does essentially the same as the offline registry edit tutorial. But that's a very niche case, of course.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Core i9 13900K
    Motherboard
    Asus Z690-I
    Memory
    64GB DDR5
    Graphics Card(s)
    3080Ti
    Hard Drives
    Samsung 990 Pro 2TB
    PSU
    Coolermaster SFX 750W
    Cooling
    Custom loop
Personally, I create spare Admin accounts on each computer so I am fully prepared for corruption in my day-to-day user accounts.
So do I. But I have used the utilman trick on another's laptop, the one that was my cousin's late husband's W8 machine. His MS account was the only user account on the machine. It was the easiest/quickest way to make a local admin account for myself so I could retrieve all his documents for the family.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
A few years ago MS "fixed" the most widely used exploit for resetting a user password by replacing any of the "ease of access" tools (utilman.exe, osk.exe, sethc.exe and so on) with a copy of cmd.exe to get a console with system privileges.
A few months back I used the sethc.exe method without any problem. IIRC, I first tried utilman.exe and that didn't work for me. I don't recall doing anything special to use sethc.exe, but if you can't get it working, I can run through it again on a test machine and document my steps.

I don't use encryption, but I assume you would have mentioned it if you do, so that's probably not the issue.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer

Latest Support Threads

Back
Top Bottom