解决 windows gpedit.msc 找不到的问题
关注IT技术视界公众号,获取更多好玩有趣软件!
建立一个文件,将下面的代码粘贴到文件中,文件命名为 gpedit恢复.bat
- @echo off
-
-
-
- pushd "%~dp0"
-
-
-
- dir /b C:WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
-
-
-
- dir /b C:WindowsservicingPackagesMicrosoft-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:WindowsservicingPackages%%i"
-
-
-
- pause
管理员执行gpedit恢复.bat批处理文件即可
THE END