This repository has been archived on 2022-01-12. You can view files and clone it, but cannot push or open issues or pull requests.
Windows/gpedit.bat

7 lines
385 B
Batchfile
Raw Permalink Normal View History

2020-06-29 13:52:29 +00:00
pushd "%~dp0"
2020-07-26 03:30:59 +00:00
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gpedit.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gpedit.txt
for /f %%i in ('findstr /i . gpedit.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del gpedit.txt
2020-06-29 13:52:29 +00:00
pause