Skip to content

Instantly share code, notes, and snippets.

View CCMeta's full-sized avatar
🦴
Wubba lubba dub dub

Cloud Chao CCMeta

🦴
Wubba lubba dub dub
View GitHub Profile

组策略: gpedit.msc 修改 管理员状态 变为 开启

以管理员身份运行脚本

Start-Process powershell -ArgumentList "Set-ExecutionPolicy Bypass -Scope Process -Force; & {Start-Process powershell -Verb RunAs -ArgumentList 'Set-LocalUser -Name Administrator -Enabled $true'}" -Verb RunAs

切换成管理员登录

组策略: