admin管理员组

文章数量:1643185

当用户忘记管理员密码而无法登录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:\Wind

本文标签: 密码win