SHARE
TWEET

Enable Group Policy Editor In Windows 10 Home Edition

SqlQuantumLeap Jun 6th, 2018 (edited) 1,704 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. REM Script:  EnableGroupPolicyEditorInWindows10HomeEdition.cmd
  3. REM Version: 1.0
  4. REM By:      Solomon Rutzky / Sql Quantum Leap
  5. REM On:      2018-06-05
  6. REM Post:    https://sqlquantumleap.com/2018/06/06/enable-group-policy-editor-gpedit-msc-on-windows-10-home-edition
  7. REM Latest:  https://pastebin.com/jF8hG69a
  8. REM
  9. REM Usage:   EnableGroupPolicyEditorInWindows10HomeEdition [/F]
  10. REM          /F = force execution when unable to verify running on Windows 10 Home Edition
  11.  
  12. TITLE Enable Group Policy Editor In Microsoft Windows 10 Home Edition
  13.  
  14. ECHO.
  15. ECHO Verifying that we are running on Windows 10 Home Edition...
  16. SYSTEMINFO | FINDSTR /O /C:"Microsoft Windows 10 Home"
  17.  
  18. IF %ERRORLEVEL% NEQ 0 (
  19.     ECHO.
  20.     SETLOCAL
  21.     COLOR 0C
  22.     ECHO    The current OS does not appear to be Windows 10 Home Edition!
  23.     COLOR
  24.  
  25.     IF /I "%1"=="/F" (
  26.         ECHO    Proceeding anyway due to "/F" switch passed in...
  27.     ) ELSE (
  28.         ECHO    Exiting...
  29.         EXIT /B 1
  30.     )
  31. ) ELSE (
  32.     ECHO Yes. Proceeding...
  33. )
  34.  
  35. ECHO.
  36.  
  37. PUSHD %SystemRoot%\servicing\Packages
  38. REM CD /D %SystemRoot%\servicing\Packages
  39.  
  40.  
  41. FOR %%F IN ("Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (
  42.     DISM /Online /NoRestart /Add-Package:"%%F"
  43. )
  44.  
  45. FOR %%F IN ("Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (
  46.     DISM /Online /NoRestart /Add-Package:"%%F"
  47. )
  48.  
  49. POPD
  50.  
  51. ECHO Done.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top