How to Enable Gpedit.msc in Windows 11

KingdomTaurusNews.com – Gpedit.msc or Group Policy editor you can use to change computer settings, in Windows 11. If you don’t have Gpedit, of course you can activate Gpedit in Windows 11.

There are several steps you can take to activate Gpedit in Windows 11. Here’s how to activate Gpedit.msc on a Windows 11 laptop operating system.

Enabling Gpedit.msc in Windows 11

  1. Open notepad in windows 11
  2. In the notepad application, copy the code below
    @echo off
    
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
    ) else ( goto gotAdmin )
    :UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    exit /B
    :gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"
    
    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. Save with name Gpedit.bat
  4. Double-click on the gpedit.bat file
  5. Wait until the process is complete with the message, This operation is completed successfully
    group policy editor Gpedit.msc windows 11
    group policy editor Gpedit.msc windows 11
  6. Close Command Prompt
ALSO READ:  [New] How to Use Smartphone Camera As Webcam on Windows 11 PC

To use Gpedit, click Windows key + R and type gpedit.msc then click Enter

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

KTN TEAM - YOGI
KTN TEAM - YOGIhttps://www.kingdomtaurusnews.com
[YOGI APRILIO] Webmaster / Tech writer who loves mobile games

Latest articles

Related articles

TECH NEWS - KingdomTaurusNews.com