超级网迷

超级网迷+ 电脑迷+ 音乐迷
个人资料
正文

Windows 密码忘记了,想更改吗?教你一招

(2018-03-23 09:50:37) 下一个

时不时会碰到这种情况,赶紧收藏吧!

链接在这里: Change Your Forgotten Windows Password with the Linux System Rescue CD (Thanks to

So far in our series we’ve covered how to reset your Windows password with the Ultimate Boot CD, but if you are a little more technical you might want to simply use the excellent System Rescue CD, which is based on Linux.

Note that if you are using standard Windows encryption for your files, resetting the password will permanently disable access to those files. In that case you should crack the password, which is something we’ll cover in an upcoming article.

image

If you are an Ubuntu user and forgot your password, we’ve covered how to do that as well, either the easy way with the grub menu or alternately with the live cd.

 
 

Creating the System Rescue CD

Before you can do anything else, you’ll need to download a copy of the System Rescue CD and burn the ISO image to disc. For this task, I prefer the simple ImgBurn utility, but you are free to use whatever burning application you prefer instead.

If you are using ImgBurn, click the Write image file to disc button…

image

Click the File button near Source and then pick the ISO file, then click the Burn button near the bottom. That’s about all there is to it.

image

Download the System Rescue CD from sysresccd.org

Resetting Your Password

Now that you have your boot CD, you’ll want to boot from it, which will take you to this very informative prompt, with some basic instructions on how to use the CD.

image

The first thing we’ll want to do is mount the hard drive, using this command. (Note that you might not need to use the –o force argument, it’s only really for when the system didn’t shut down correctly)

ntfs-3g /dev/sda1 /mnt/windows –o force

You can use the df –m command to verify that the drive has been mounted and that it’s the right drive. Note that it’s mounted on /mnt/windows at this point.

image

Now you’ll want to change directory into the Windows/System32/config directory inside of your windows installation. For mine, the full path was something like this, but it might be different on yours:

cd /mnt/windows/Windows/System32/config

Once you are in that directory, you should see that there is a SAM file, which is where we’ll want to change the passwords.

image

To change the password we’ll use the chntpw command, and it’s most useful to use the –l argument first to list out all the usernames in the file.

chntpw –l SAM

image

 
 

Now you can add the –u argument with your username, which will end up being something like this command, except you’ll want to replace geek with your username:

chntpw –u geek SAM

This will present you with a wizard type screen:

image

I’m going to assume that you want to set a new password, so just type “2” at the prompt, add in your password, and remember to use the “y” key when prompted to save.

image

At this point your password has been changed, so you can issue the reboot command to restart the computer (should take the disc out of the drive)

image

And now you should be able to login with the new password:

image

Note that I tested this technique on both XP, Vista and Windows 7 with good results.

Download ImgBurn from Ninite

 

感叹一句,这文章已经10岁了!

2018.03.23

[ 打印 ]
阅读 ()评论 (2)
评论
braker999 回复 悄悄话 干嘛这样折腾自己,下载一个微软免费ERD镜像,烧成CD,CD开机,选择Locksmith就可以了
南岛水鸟 回复 悄悄话 谢谢分享!10岁了? 咋不早贴出没见过啊。
登录后才可评论.