I am building a homelab to get some experience with routers, switches and Windows Server. I just purchased and was delivered yesterday a Dell R710 server. It has included Windows 2016 Server Evaluation Edition. I want to upgrade memory, drives and maybe the iDrac. However I unboxed it yesterday and can't log into the OS. Is there a way to reset the password or is there a generic way to log in? I am new so not much experience. I don't have a disk or a iso. copy on USB drive by the way. I have my CCNA in Routing & Switching but no Server experience. Hoping a helping hand....thanks. Stanley
1 Answers
If the account you are trying to login is already Administrator and there are no other accounts available you could attempt a reset via chntpw.
You’re going to need Linux Live CD (eg. SystemRescueCd)
Boot the Linux CD
Once you’re in the terminal. You need to mount the Windows partition. Before you can do that, you need to know what the device path is. Use the
fdisk -lcommand to list the available hard drives and partitions. The Windows partition is usually /dev/sda1 or /dev/sda2` but could be different on your system.Create a mount point, and mount the Windows partition, and then navigate to the config directory. Note that the casing on the Windows and System32 directories may be different on some systems. Typing the cd command as I have below should work 99% of the time.
mkdir /mnt/windowsntfs-3g /dev/sda2 /mnt/windowsls -l /mnt/windows(if the files are not those of disk "C:\" you need to umount it withumount /mnt/windowsand mount another partition)cd /mnt/windows/[Ww]indows/[Ss]ystem32/config
chntpw works by modifying the SAM, SYSTEM, and SECURITY hives (i.e. files). I recommend you backup these files first. Note that the filenames are case-sensitive, so you may need to use the ls command to verify the casing.
cp SAM SAM.bakcp SYSTEM SYSTEM.bakcp SECURITY SECURITY.bak
Use chntpw -l to list the available users. This is an important step, because when working with chntpw, the usernames are case-sensitive. Each time you call the chntpw command, you need to tell it the name of the SAM, SYSTEM, and SECURITY hives.
chntpw -l SAM SYSTEM SECURITY
Reset the password for the user by running the command below. You’ll be presented a User Edit Menu that includes options to clear the password, change the password, promote the user to an admin, and unlock & enable the account.
chntpw -u USERNAME SAM SYSTEM SECURITY
I personally, recommend you use the 1 - Clear (blank) user password option.
You’ll then be given the prompt Write hive files? (y/n) [n]:. Type y and hit Enter or your work will be in vain.
cd ; umount /mnt/windowsReboot(eject cd)
At this point the Administrator user should login with no password
If something goes wrong (eg. infinite reboot) it is sufficient to restore the .bak files.
- 97