How to take over a server when you don’t know the password:
Put in disk for server 2022 (USB/DVD is fine, as long as you can boot from it)
Boot from install media
Next
Repair your computer
Troubleshoot
Command prompt
Find out what your bootable drive is, might be C drive, might be D- just pick them,
then run Dir
Once you find the right volume, browse into windows directory
Cd windows
Cd system32
Rename utilman.exe utilman.old
Copy cmd.exe utilman.exe
Dir cmd.exe
Dir utilman.exe
To confirm sizes match
Cd..
Cd..
bcdedit /set {bootmgr} timeout 15
bcdedit /set displaybootmenu yes
Close cmd window, reboot machine using GUI
Upon reboot, use F8 and boot into safe mode (OR ELSE SFC)
Click accessibility button to bring up command prompt
Now run:
Net user administrator DEAD1599@@ /domain
(Don’t use domain if not a domain machine)
Log in with new password to confirm it
Reboot into normal mode and log in with new password