Skip to content

Instantly share code, notes, and snippets.

@gellanyhassan0
Created November 18, 2022 17:50
Show Gist options
  • Save gellanyhassan0/e297e00a0de07662f8d733bfba3a8c6d to your computer and use it in GitHub Desktop.
Save gellanyhassan0/e297e00a0de07662f8d733bfba3a8c6d to your computer and use it in GitHub Desktop.

Revisions

  1. gellanyhassan0 created this gist Nov 18, 2022.
    6 changes: 6 additions & 0 deletions Group_Policy_Editor.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    @echo off
    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"
    pause
    3 changes: 3 additions & 0 deletions steps
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #https://windowsreport.com/enable-gpedit-windows-11/

    Press Windows + R to open Run, type gpedit.msc, and hit