腾讯云🐔🐔后台关机,后台进入救援系统,登录进入centos救援系统
fdisk -l
设备 Boot Start End Blocks Id System
/dev/vda1 * 2048 83884031 41940992 7 HPFS/NTFS/exFAT
...
从这条信息中可以看出 /dev/vda1 分区使用了 NTFS 文件系统,这通常是 Windows 系统使用的文件系统。因此,这个分区是系统中的 Windows 分区。
yum -y install ntfs-3g
安装ntfs-3g来挂载windows分区
如果救援系统是debian
Debian安装
shell> apt -y install ntfs-3g
挂载windows分区
mkdir /mnt/windows
ntfs-3g /dev/vda1 /mnt/windows
安装 chntpw 软件
wget http://li.nux.ro/download/nux/dextop/el7/x86_64//chntpw-0.99.6-22.110511.el7.nux.x86_64.rpm
yum -y install chntpw-0.99.6-22.110511.el7.nux.x86_64.rpm
如果救援系统是debian
apt -y install chntpw
转到Windows的SAM路径
cd /mnt/windows/Windows/System32/config
备份SAM文件
cp SAM{,.bak}
chntpw -l SAM
清除Windows密码
chntpw SAM
输入1
清除密码
Hives that have changed:
# Name
0 <SAM>
Write hive files? (y/n) [n] : y 按 y ,表示保存修改并退出。
0 <SAM> - OK
按 q ,表示退出修改状态
不需要关机,回到腾讯云🐔🐔后台退出救援系统自动重启,连接3389直接进入系统。
没有评论