How to make Windows require a password for privilege escalation
Topics: Windows
By default, Windows doesn’t require a password for executing apps in admin mode.
To change this to a safer approach, run the following registry modification command in a Powershell with admin rights:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value 1