Skip to content

Instantly share code, notes, and snippets.

@ekojs
Last active July 4, 2017 09:31
Show Gist options
  • Save ekojs/a8af0007145e98b0f2d68f7e9966a20b to your computer and use it in GitHub Desktop.
Save ekojs/a8af0007145e98b0f2d68f7e9966a20b to your computer and use it in GitHub Desktop.

Buka Win + Run, kemudian ketik secpol.msc sebagai Administrator.

Pilih menu Software Restriction Policies kemudian klik kanan lalu pilih New Software Restriction Policies Pilih menu Additional Rules kemudian klik kanan lalu pilih New Path Rule.

Masukkan rule path seperti dibawah, kemudian pilih Security Level ke Disallowed

%AppData%\*.exe
%AppData%\*\*.exe
%LocalAppData%\*.exe
%LocalAppData%\*\*.exe
%USERPROFILE%\Appdata\*.exe
%USERPROFILE%\Appdata\*\*.exe
%USERPROFILE%\Appdata\LocalLow\*.exe
%USERPROFILE%\Appdata\LocalLow\*\*.exe

Kemudian ketik gpupdate /force pada kotak dialog run, lalu restart komputer.

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