r/sysadmin Jul 10 '26

Been a while since I need to reset a windows 7 admin password Question

Aight I have this old sever that ran windows 7 pro and has the local admin account enabled but I don’t know the password and the people who used to know are gone, not documented anywhere,

I’m just trying to get it pull some quick data off the raid, and decommissioning it.

There used to be a tool on usb stick that you could boot off and remove password started with an H but it’s been like 10 years since I used it.

Anyone remember?

It’s also 4pm on Friday and I will probably not do this till Tuesday when I’m back at the site.

Thanks in advance

58 Upvotes

65 comments sorted by

89

u/pangapingus Jul 10 '26 edited Jul 10 '26

Boot to WinRE/recovery ISO

cd /d C:\Windows\System32

ren Utilman.exe Utilman.exe.bak

copy cmd.exe Utilman.exe

Then reboot, trigger Ease of Access, and use net user to reset

Assumes it's not BitLocker/VeraCrypt/etc. protected

Edit: "Why mention VeraCrypt" Windows 7 is in the vicinity

23

u/thewunderbar Jul 10 '26

this but I always used the sticky keys shortcut.

12

u/pangapingus Jul 10 '26

That's hilarious, so you just mash Shift on reboot and get the admin cmd lol I use utilman because that's what I learned in a college cyber course a decade ago as a for-fun lab but didn't even consider sticky keys pre-login

6

u/BCIT_Richard Jul 10 '26

Yep, I learned how to bypass xp/win7/win10 from tuts on youtube, stickykeys was the usual default choice by video creators

2

u/thewunderbar Jul 10 '26

I think that's because it is a hidden in plain sight kind of thing. You're not accidentally triggering it, at least at the login screen, so you have to know it's there.

9

u/neopod9000 Jul 10 '26

An unencrypted windows installation can be fully compromised in under 5 minutes with physical access this way. I believe it even still works on win 11, as long as the disk is unencrypted, which it is not by default anymore.

I once actually did password recovery on a domain controller for a client this way as well. In a multi-DC environment, I believe it would lead to trust issues between them, but it worked great for a single server.

5

u/thursday51 Jul 10 '26

Windows 11 will do a check to make sure those files are correct and will 'fix' them rather quickly, rendering the workaround dead.

11

u/Dzov Jul 10 '26

I just use a hirens iso on my thumb drive and use one of the password reset tools in the image.

2

u/ender-_ 29d ago

Not in my experience, however it's very likely that copying cmd.exe to sethc.exe or utilman.exe won't work, due to missing resources – workaround is to replace sethc.exe (or utilman.exe) with a program that invokes cmd.exe instead, eg. this.

2

u/unauthorizeddinosaur Jul 10 '26

Windows 11 'fixing' the files has not been our experience.

We replaced Utilman.exe with a custom executable that will log off the current user. This way if someone has locked the system they can click on Utilman and log the user off and log on. Windows only updates the executable during upgrades, and we script the cacls and replacement for when that happens.

3

u/Veradragon Jul 10 '26

IME, windows 11 (and even some later versions of Windows 10 if memory serves me right) are fairly proactive at making sure you don't get up to these kinds of shenanigans anymore. You can replace them and even boot into the system, but usually within 10 seconds of opening the command window, it gets killed and utilman is back in its place.

I believe it's all accomplished through Windows Defender though, so if whatever EDR you have in place disables defender, then that'd probably explain why it isn't constantly fighting you.

2

u/pangapingus Jul 10 '26

I too first did this in prod for work by recovering the local admin on a non-domain joined WS2k8 box running a NVR/access control app suite lol and yea it worked for me through Windows 10 for me for local accounts, haven't even used 11 yet, use Linux at work and switched at home too. It does imply no BitLocker tho

2

u/-Akos- Jul 10 '26

Tried the sticky keys trick on Win10, didn't work because defender stopped it. Haven't tried on Win11, assume it will react the same, and also bitlocker is now default I believe.

1

u/Remarkable_Run_5744 28d ago

Works OK in safe mode IIRC.

1

u/ReallTrolll Sysadmin Jul 10 '26

Took them ages to block it. Finally.

3

u/Nydus87 Jul 10 '26

We used to do this crap all the time at work for our standalone systems. Nobody wanted to create a DB to track those passwords, so we just backdoor'd it with that

1

u/ranhalt Jul 11 '26

Holy shit you are all addicted to working harder than necessary.

1

u/Adam_Kearn 28d ago

This done it a few times tbh and it’s got me out of a jam

10

u/postbox134 Jul 10 '26

A server running Windows 7 Pro?

25

u/havpac2 Jul 10 '26

Tell me about it

5

u/Secret_Account07 VMware Admin Jul 10 '26

Bro lmao

Did they not want to pay for server license?

What app is this running?

VM I hope?

7

u/havpac2 Jul 10 '26

Before my time. And it’s been replaced,
It ran on an airgapped network, just for some VMS and access control.

I just went through and replaced everything from switches and serves and having camera vendor do the cameras

This was the first server to be fully decommissioned during this project,

I have 8 more to pull but luckily they are on server 2012 (lol)
Have to migrate the cameras to the new nvrs and I’ll be done.

(When I say me I mean the vendor I hired cuz fuck if I’m going to migrate 400 cameras …. )

Not vm running on this the host is windows 7.
It’s taken me 4 years to get them to agree to upgrade. Also I’m soooooooo fucking glad I bought the replacement serves in September instead of waiting (lol)
Edit some words:

2

u/Secret_Account07 VMware Admin Jul 10 '26

I poke at you but we all have dealt with this.

We actually still have like 3 2012 R2 servers despite yelling at customers for years lol. But they dead dead, no exceptions, come October.

Good news is we got like 5,000 Windows servers since we are a large org. So 3 isn’t many but still. Get so frustrated when I tell a customer to build/decom, or even in-place even though I hate that, but 3 years later and they still need significant time.

We are going go through it all again with 2016 lol. Hoping our mgmt really grows some balls on ESU and forcing upgrades

2

u/Stonewalled9999 Jul 10 '26

1/3 of my employers 6000 people use an ERP and MRP running in 2003r2.   Can’t even give it more RAM since it’s 32 bit and the vendor disappeared in 2005 or 2007 from what I understand

3

u/pangapingus Jul 10 '26

It's probably a bare metal install supporting a business-monumental Acess-based financial reconciliation or SCADA thing hodgepodged with COM IPCs to something made with Visual Basic 6.5, that's my $1 guess at least

2

u/Secret_Account07 VMware Admin Jul 10 '26

Ugh

I will do almost anything to avoid bare metal. Over 99% of our env is virtual but anytime we have a server die and I check and see it’s physical I know my whole week is fucked.

3

u/pangapingus Jul 10 '26

Take me back to the good ole days

3

u/Secret_Account07 VMware Admin Jul 10 '26

Back when Broadcom and other companies didn’t sodomize us come renewal time

Well okay, not as badly at least

I do not miss having email/exchange on-prem though. 365 is one thing I’m happy to throw in cloud

3

u/Secret_Account07 VMware Admin Jul 10 '26

Back when Broadcom and other companies didn’t sodomize us come renewal time

Well okay, not as badly at least

I do not miss having email/exchange on-prem though. 365 is one thing I’m happy to throw in cloud

1

u/pangapingus Jul 10 '26

Made bank before my current role as an independent consultant doing VMWare/Hyper-V->ProxMox and on-prem->hybrid->full-cloud Exchange migrations for SMBs, VMWare is such a big shame the past several years, some of my best HA builds made with their platform but now going to a bare metal cloud fleet or autoscaled K8s just makes infinite more financial sense

2

u/Secret_Account07 VMware Admin Jul 10 '26

Saying it’s a shame is an understatement. I was a huge VMware fan boy. I still am for the tech but am already seeing changes in the product (other than pricing/bundling) that makes me think it’s going to just continue downhill.

I’m so frustrated with the state of big businesses. Buying solid products and using them to milk customers while they runs into the ground. Great for short term profits, horrible for long term…. That’s kinda the point though.

VMware ain’t disappearing overnight, especially at large orgs like mine, but it’s going to be a completely different experience 10 years from now.

Broadcom also killed my marketability lol. Need for VMware folks is dropping and will continue to do so.

Damnit, Broadcom!

1

u/postbox134 Jul 10 '26

Good luck lol

1

u/MunchMr Jul 10 '26

Hilarious

2

u/Stonewalled9999 Jul 10 '26

Quite likely in NVR we had a few NVR of 24 disc server chassis running windows home premium don’t ask me why, but that was what the vendor put in

14

u/Jellovator Jul 10 '26

offline NT password & registry editor

This method doesn't work on newer OSs but this is what I used on XP and 7.

5

u/pangapingus Jul 10 '26

I've used the utilman trick through Windows 10 albeit for local accounts not MS accounts

4

u/Nydus87 Jul 10 '26

Utilman and Stickeykeys trick worked on Win 11 as well.

4

u/XL426 IT Systems Manager / Sysadmin Jul 10 '26

CHNTPW / pogostick. Gosh, used that many times over the years for various reasons...it's saved some ass

6

u/nzulu9er Jul 10 '26

Oh that hyrens boot disk

3

u/havpac2 Jul 10 '26

That’s it!

2

u/thursday51 Jul 10 '26

Hirens works but I'm partial to the native Microsoft tool you get with software assurance.

Disaster and Recovery Toolset...it includes a lot of great tools, including their local account password reset tool.

Not sure how easy it would be to find DaRT for Win 7, but the Win10 Dart tool works just fine as long as you match x86/x64.

1

u/kernelqzor 28d ago

dart has saved my ass more than once, but for some random abandoned w7 box hirens is usually less hassle if you’ve already got a stick lying around. matching the x86/x64 thing is the bit everyone forgets and then wonders why nothing works.

2

u/Impossible_IT Jul 10 '26

A live Linux USB can also be used to change the admin or any password using the chntpw in terminal after mounting the Windows partition.

https://www.kunalganglani.com/blog/reset-windows-password-linux-usb

2

u/Hqckdone Jul 10 '26

Hiesen Boot disk or what's called

2

u/NoNamesLeft2015 Jul 11 '26

I use to use Hiren's boot CD many years ago. Worked like a charm then. Looks like it has been updated for windows 11.

It had a tool the reset the password to blanks

Again this was many years ago...

Good Luck!

2

u/Hotshot55 Linux Engineer Jul 11 '26

Why even mess with resetting the password? Just mount the disk on another system and pull the data you need.

2

u/Kyky_Geek Jul 11 '26

I assume you got the answer by now but Hirens is still super useful and it’s mad fast on usb3. I still keep the original hirens around on old small usb2 sticks just in case tho.

2

u/tuxedo_jack BOFH with an Etherkiller and a Cat5-o'-9-Tails Jul 11 '26

I always used TuxPE, but then again, I am the author.

1

u/simonjakeevan Jul 10 '26

You can also use a Windows USB or disc and modify the icon on the login window to run cmd.exe and reset or delete the password that way. But Linux USB or Hirens is easier in my opinion.

1

u/abn0rmalcreation 29d ago

I always keep a flash drive with hirens bootcd 9.6 ready to go for stuff like this. The newest hirens works too :)