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
import winreg | |
def disable_uac(): | |
try: | |
# Disabling UAC in Windows can | |
# expose your system to unauthorized | |
# access and malware threats. | |
# Proceed with caution as it compromises | |
# your system's security. | |
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", 0, winreg.KEY_WRITE) |