Win10家庭版获取策略组功能

2019-08-30 20:06:26 浏览数 (1)

将以下内容保存为cmd文件:

代码语言:javascript复制
@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
复制代码

右键,以管理员方式运行即可。

cmd

0 人点赞