windows找不到文件gpedit.msc处理方法

新建一个txt,输入

@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

将后缀名改成cmd,运行即可

posted on 2020-04-04 11:52  hyacinthhome  阅读(1618)  评论(0编辑  收藏  举报