Skip to content

Instantly share code, notes, and snippets.

@SeanPesce
Created September 24, 2019 23:02
Show Gist options
  • Select an option

  • Save SeanPesce/a3a81d752c11173c1806f7e6cce622d6 to your computer and use it in GitHub Desktop.

Select an option

Save SeanPesce/a3a81d752c11173c1806f7e6cce622d6 to your computer and use it in GitHub Desktop.
@echo off
REM Slightly edited from source:
REM https://www.itechtics.com/easily-enable-group-policy-editor-gpedit-msc-in-windows-10-home-edition/
REM This script installs gpedit (Group Policy Editor) on Windows 10 Home Edition
REM (Because it's not included by default in Home Edition)
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\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:"%SystemRoot%\servicing\Packages\%%i"
del List.txt
pause
@SeanPesce
Copy link
Author

SeanPesce commented Sep 24, 2019

The only behavioral modification is line 16, which deletes the temporary file List.txt

@jackxu0302
Copy link

get the downloadable file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment