C
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$UAC = GUICreate("UAC", 220, 82, 192, 124)
$AN = GUICtrlCreateButton("AN", 24, 22, 73, 33)
$AUS = GUICtrlCreateButton("Aus", 121, 22, 73, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $AN
RegWrite("HKLM64\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System", "ConsentPromptBehaviorAdmin", "REG_DWORD", "5")
RegWrite("HKLM64\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "REG_DWORD", "1")
case $AUS
RegWrite("HKLM64\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System", "ConsentPromptBehaviorAdmin", "REG_DWORD", "0")
RegWrite("HKLM64\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "REG_DWORD", "0")
EndSwitch
WEnd
Alles anzeigen