Skip to content

Commit

Permalink
Update 解除微软账户和本地账户绑定【by 白隐Hakuin】.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakuin123 authored Jul 21, 2022
1 parent 38e18bf commit 4c6e615
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion 解除微软账户和本地账户绑定【by 白隐Hakuin】.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@echo off
title 解除微软账户和本地账户绑定 by 白隐Hakuin

::管理员权限运行检测
reg query HKU\S-1-5-19 1>nul 2>nul || goto :Admin

echo ==============================================
echo Win10/11解除微软账户和本地账户绑定 by 白隐Hakuin
echo ==============================================
Expand All @@ -13,4 +17,10 @@ reg delete HKEY_USERS\.DEFAULT\Software\Microsoft\IdentityCRL /va /f
echo 修改已完成。即将自动注销本地账户登录,如果不需要可直接关闭命令提示符
echo 手动重新登录后,在设置-账户-电子邮件和应用下,单击微软账户xxx@xx.com,点击“删除”即可
pause
shutdown -l
shutdown -l

::管理员权限运行检测-后半部分
:Admin
echo 请以管理员身份运行
echo.
pause >nul

0 comments on commit 4c6e615

Please sign in to comment.