window10启用administrator 和启用组策略编辑器
1,启用administrator账户
net user administrator /active:yes
2,启用组策略编辑器 新建一个文本文件。把下面代码粘贴进去。修改后缀名为.cmd 以管理员身份运行cmd文件
@echo off pushd "%~dp0" dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i" pause
自立更生,艰苦奋斗!