您的位置:首页 > 其它

win下开机密码清除(待验证)

2017-05-01 20:37 204 查看
当用户忘记管理员密码而无法登录Windows时,或因为账户的“ASM”文件损坏而无法进入Windows时。

可预先在计算机上新建  clearpasswd.bat文件,内容如下:

@echo off

echo.

echo 正在删除系统中当前使用的SAM文件及相关注册表文件...

echo .

del  C:\Windows\System32\config\sam   /f /q >nul

del  C:\Windows\System32\config\system   /f /q >nul

del  C:\Windows\System32\config\software   /f /q >nul

del  C:\Windows\System32\config\security   /f /q >nul

del  C:\Windows\System32\config\default   /f /q >nul

echo 正在复制系统中备份的SAM文件及相关注册文件......

echo.

copy  C:\Windows\repair\sam        C:\Windows\System32\config\  >nul

copy  C:\Windows\repair\system     C:\Windows\System32\config\  >nul

copy  C:\Windows\repair\software   C:\Windows\System32\config\  >nul

copy  C:\Windows\repair\security   C:\Windows\System32\config\  >nul

copy  C:\Windows\repair\default    C:\Windows\System32\config\  >nul

echo 成功清除Windows所有的账户及密码信息,现在重启机器即可直接进入Windows系统!

echo 梦之蓝祝你体验愉快!

(备注:我的电脑无法进入DOS系统,有待后期验证)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Win登录密码消除