Skip to content

Instantly share code, notes, and snippets.

@flevi29
Last active March 27, 2021 09:22
Show Gist options
  • Save flevi29/9b2e9a76d50502a1a2c65a52d4b18495 to your computer and use it in GitHub Desktop.
Save flevi29/9b2e9a76d50502a1a2c65a52d4b18495 to your computer and use it in GitHub Desktop.
@echo off
powershell -Command "$pth = \"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\"; Set-ItemProperty -Path $pth -Name \"ConsentPromptBehaviorAdmin\" -Value 1; Get-ItemProperty -Path $pth -Name \"ConsentPromptBehaviorAdmin\"; "
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment