-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 解除微软账户和本地账户绑定【by 白隐Hakuin】.bat
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ============================================== | ||
|
@@ -13,4 +17,10 @@ reg delete HKEY_USERS\.DEFAULT\Software\Microsoft\IdentityCRL /va /f | |
echo 修改已完成。即将自动注销本地账户登录,如果不需要可直接关闭命令提示符 | ||
echo 手动重新登录后,在设置-账户-电子邮件和应用下,单击微软账户[email protected],点击“删除”即可 | ||
pause | ||
shutdown -l | ||
shutdown -l | ||
|
||
::管理员权限运行检测-后半部分 | ||
:Admin | ||
echo 请以管理员身份运行 | ||
echo. | ||
pause >nul |