Posts: 1,769
Threads: 410
Joined: Feb 2003
I'm running a Win7 Pro install and when I lock it, it has a screen that sits at a "Press Control Alt Delete" screen before I can put in my password.
I've tried everything I can think of to get it to lock and then wait a few seconds and then pass a CAX so that the screen goes directly to the password field but can't seem to get it to work.
is this even possible?
thanks.
Posts: 12,121
Threads: 142
Joined: Dec 2002
key() does not work.
Try EnsureLoggedOn(1). At first open Properties -> Macro Properties -> How -> Temporarily Unlock Computer, check 'Send Ctrl Alt Delete'. If don't need to unlock, clear/uncheck other controls.
Posts: 12,121
Threads: 142
Joined: Dec 2002
Tested: sending Ctrl+Alt+Delete does not work on Windows 7.
Try this.
Function
DisableWindowsLogonCtrlAltDelete
;/
function disable [reEnableAfterS] ;;disable: 0 enable, 1 disable
;Disables, enables or temporarily disables the Ctrl+Alt+Delete requirement at Windows logon/unlock.
;Error if fails.
;reEnableAfterS - number of seconds to disable. Then will enable again. QM must be running at that time.
;NOTES
;QM must be running as administrator.
;If the Windows setting already matches <b>disable</b>, this function does nothing.
;EXAMPLE
;DisableWindowsLogonCtrlAltDelete 1 10 ;;disables the Ctrl+Alt+Delete screen for 10 s
;shutdown 6 ;;lock
if(!disable) tim
if(!IsUserAdmin) end "QM must be running as administrator"
str rk="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
int DisableCAD
rget DisableCAD "DisableCAD" rk HKEY_LOCAL_MACHINE
if((DisableCAD!0)=(disable!0)) ret
if(!rset(disable!0 "DisableCAD" rk HKEY_LOCAL_MACHINE)) end "failed"
if(disable and reEnableAfterS) tim reEnableAfterS DisableWindowsLogonCtrlAltDelete
more info
http://social.technet.microsoft.com/For ... 4052d2fc4f
Posts: 1,769
Threads: 410
Joined: Feb 2003
Thanks!
Something may be wrong with the way I have my system setup though. I keep getting an error. Here is the code I have and the error I get when I run it though.
Function
Lock_WS
Trigger
/ //FF_Keyboard2
DisableWindowsLogonCtrlAltDelete 1 10
shutdown 6
Error (RT) in Lock_WS: failed. ?
Posts: 12,121
Threads: 142
Joined: Dec 2002
Maybe the registry value does not exist. I updated the function, try now.
Posts: 1,769
Threads: 410
Joined: Feb 2003
This doesn't seem to work for me but I made the change in the netplwiz app and it works good. However, I haven't rebooted since the function added the registry entry though.
Posts: 12,121
Threads: 142
Joined: Dec 2002
Works without rebooting, if works at all.
Posts: 1,769
Threads: 410
Joined: Feb 2003
hmmm...wonder why setting it from netplwiz works but not the registry entry they mention.
Posts: 12,121
Threads: 142
Joined: Dec 2002
Maybe on your PC need to change something more in registry. If you have registry monitor, look what netplwiz changes. Registry mnitor is in Process Monitor, you can download it from Microsoft.
Posts: 1,769
Threads: 410
Joined: Feb 2003
Here's the changes from Registry Monitor filtered by
it should arrange nicer in text editor/spreadsheet
Switched ON
10:11:48.7490785 AM netplwiz.exe 6856 RegOpenKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon SUCCESS Desired Access: Write
10:11:48.7491513 AM netplwiz.exe 6856 RegSetValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon SUCCESS Type: REG_SZ, Length: 4, Data: 0
10:11:48.7492375 AM netplwiz.exe 6856 RegDeleteValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword NAME NOT FOUND
10:11:48.7493153 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
10:11:48.7557515 AM netplwiz.exe 6856 RegOpenKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS Desired Access: Read
10:11:48.7557872 AM netplwiz.exe 6856 RegQueryValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DisableCAD SUCCESS Type: REG_DWORD, Length: 4, Data: 1
10:11:48.7558142 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
10:11:48.7559729 AM netplwiz.exe 6856 RegCreateKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS Desired Access: Write
10:11:48.7560263 AM netplwiz.exe 6856 RegSetValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DisableCAD SUCCESS Type: REG_DWORD, Length: 4, Data: 0
10:11:48.7561959 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
Switched Off
10:12:51.6120123 AM netplwiz.exe 6856 RegOpenKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon SUCCESS Desired Access: Write
10:12:51.6120927 AM netplwiz.exe 6856 RegSetValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon SUCCESS Type: REG_SZ, Length: 4, Data: 0
10:12:51.6121819 AM netplwiz.exe 6856 RegDeleteValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword NAME NOT FOUND
10:12:51.6122570 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
10:12:51.6212319 AM netplwiz.exe 6856 RegOpenKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS Desired Access: Read
10:12:51.6212692 AM netplwiz.exe 6856 RegQueryValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DisableCAD SUCCESS Type: REG_DWORD, Length: 4, Data: 0
10:12:51.6212970 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
10:12:51.6214559 AM netplwiz.exe 6856 RegCreateKey HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS Desired Access: Write
10:12:51.6215093 AM netplwiz.exe 6856 RegSetValue HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DisableCAD SUCCESS Type: REG_DWORD, Length: 4, Data: 1
10:12:51.6216733 AM netplwiz.exe 6856 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon SUCCESS
Posts: 12,121
Threads: 142
Joined: Dec 2002
The same as my function does. The other values are not important.
Maybe reenables too soon. Try DisableWindowsLogonCtrlAltDelete 1 60
Posts: 1,769
Threads: 410
Joined: Feb 2003
no change.
I tried it for 600 and 6000 to make sure it wasnt doing a milisecond timing. I did have to kill the Timer when I unlocked when I used one of the long delays.
Posts: 12,121
Threads: 142
Joined: Dec 2002
I forgot to stop the timer
updated