Cara Mengaktifkan Fitur Local Group Policy Editor (gpedit.msc)

Cara Mengaktifkan Fitur Local Group Policy Editor (gpedit.msc)
16 Mei 2023 No Comments Tak Berkategori Aji

Halo guys! Mimin mau kasih tau nih bagaimana caranya buat aktifin fitur Local Group Policy Editor (gpedit.msc). langsung aja ya:

  1. Pertama kalian bisa buka Notepad / Notepad ++, copy paste code berikut:

    @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

  2. Save as – tentukan lokasi penyimpanan – Save as type (pilih all files)
  3. Buat nama file.bat
  4. Close notepadnya, klik kanan nama file.bat nya – Run as administrator – tunggu prosesnya sampai selesai
About The Author
Aji

Leave a reply

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *