[ autoit ]
#Requireadmin RunWait("autologon.exe -accepteula") $IsAutoLogonEnabled = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon") If $IsAutoLogonEnabled = 1 Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "StartMenuLogoff", "REG_DWORD", 1) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoLogoff", "REG_DWORD", 1) MsgBox(0, "Info", "Logoff Disabled") EndIf If $IsAutoLogonEnabled = 0 Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "StartMenuLogoff", "REG_DWORD", 0) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoLogoff", "REG_DWORD", 0) MsgBox(0, "Info", "LogOff Button Enabled") EndIf
We use sysinterals Autologin to configure... well autologin....
I would like to bundle that EXE with my autoit script. How would I do that? Normally I use Winrar and create a sfx. Is this what autit3wrapper is for?
This simple scrtipt will disable a users ability to logoff if autologon is enabled.
Now,
I know I could simple rewrite the script and do all of this without using sysinternals, but I am trying to see if the concept will work