Last active
March 27, 2021 09:22
-
-
Save flevi29/9b2e9a76d50502a1a2c65a52d4b18495 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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