系统相关
首页 > 系统相关> > windows家庭版安装策略组服务gpedit.msc

windows家庭版安装策略组服务gpedit.msc

作者:互联网

  1. 新建一个txt文件
  2. 输入

Code

@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

  1. 更改后缀为.bat后以管理员权限运行

标签:txt,家庭版,gpedit,windows,List,Windows,servicing,Packages,%%
来源: https://www.cnblogs.com/bye-world/p/16683819.html