Vitalix Posted August 4, 2004 Posted August 4, 2004 Hey guys and gals,I am trying to lockdown an XP system and would like for a standard user to logon automatically when the machine boots into Windows. I would like to start an application, and disable the CTRL+ALT+DEL key so that users cannot interrupt the application.Is there a way that I can do this via Windows registry or various MMC snaps?Can I change CTRL+ALT+DEL to ALT+F5+BACKSPACE, for example?Thanks in advance as usual!
prathapml Posted August 4, 2004 Posted August 4, 2004 Ctrl+Alt+Del is so deeply embedded into the psyche of windows, that it is not possible to disable it, or change its functionality.WAIT !!!!! (forget my comment above)try running "gpedit.msc" from <Start >> Run>, and see if there is any function to disable the (above) magic key-combination. Then, you could create a hidden shortcut to TaskManager in the QuickLaunch, and give it a shortcut key of <Ctrl+Alt+any_alpha_numeric_key>.
MCT Posted August 4, 2004 Posted August 4, 2004 just wanna add to what prathapml said ... in gpedit.mscUser Config. > Admin Templates > Windows Components > System > CTRL + ALT + DEL Optionsare the only thing that resembles what u said .. & that only lets u specify what buttons 2 remove from the screentry http://winguides.com they may have something for setting the key differentalso.. u may wanna take a more therough look in gpedit, i didnt see anything tho regards
Vitalix Posted August 4, 2004 Author Posted August 4, 2004 Ctrl+Alt+Del is so deeply embedded into the psyche of windows, that it is not possible to disable it, or change its functionality.WAIT !!!!! (forget my comment above)try running "gpedit.msc" from <Start >> Run>, and see if there is any function to disable the (above) magic key-combination. Then, you could create a hidden shortcut to TaskManager in the QuickLaunch, and give it a shortcut key of <Ctrl+Alt+any_alpha_numeric_key>.No luck. Just the basic local security stuff.It's possible to disable the task manager portion of the ctrl/alt/del combo, but then I would not be able to administer the machine in case I needed to stop or start and app.Is the only way to disable to change it through 3rd party software?
MadGutts Posted August 4, 2004 Posted August 4, 2004 The only way i can see to do this, is to hijack the keypress and stop windows recieving it... The same way windows stops the motherboard recieving it unless its pressed 3 times...I'm affraid my assembly is too rusty to help with this one, but i'm sure someone could help you.
scankurban Posted August 21, 2004 Posted August 21, 2004 run this cmdlinecontrol userpasswords2change your login properties
jaclaz Posted August 21, 2004 Posted August 21, 2004 This is one way:Windows NT and Windows 2000 You can disable Ctrl-Alt-Del on NT and 2K but this is very risky. It can prevent you from ever being able to log on again!Be sure to enable Automatic Logon by specifying DefaultDomainName, DefaultUserName, DefaultPassword and AutoAdminLogin in the registry under Windows Login. Otherwise you will not be able to logon again. See Knowledge Base article Q114615 for details - there is a link on my links page. You may also want to read my disclaimer page.After you set up automatic logon the logon dialog no longer appears at startup. You are then unable to logon as a different user until the automatic logon and below code is disabled in the registry. You may be able to temporarily bypass the automatic logon by holding down the Shift key as windows is starting This code was donated by Paul Johnston. Public Sub SetupScancodeMap()Dim bArray(1 To 48) As ByteOn Error Resume NextIf g_bDebugMode = True Then Exit Sub'' Setup the keyboard scancode mapping to disable the Windows keys' and Context menu keys'bArray(1) = &H0bArray(2) = &H0bArray(3) = &H0bArray(4) = &H0bArray(5) = &H0bArray(6) = &H0bArray(7) = &H0bArray(8) = &H0'' Number of keys'bArray(9) = &H6bArray(10) = &H0bArray(11) = &H0bArray(12) = &H0'' Windows key'bArray(13) = &H0bArray(14) = &H0bArray(15) = &H5BbArray(16) = &HE0'' Windows key'bArray(17) = &H0bArray(18) = &H0bArray(19) = &H5CbArray(20) = &HE0'' Windows menu key'bArray(21) = &H0bArray(22) = &H0bArray(23) = &H5DbArray(24) = &HE0'' F10 key'bArray(25) = &H0bArray(26) = &H0bArray(27) = &H44bArray(28) = &H0'' Left Ctrl-key'bArray(29) = &H0bArray(30) = &H0bArray(31) = &H1DbArray(32) = &H0'' Left Alt-key'bArray(33) = &H0bArray(34) = &H0bArray(35) = &H38bArray(36) = &H0'' Right Ctrl-key'bArray(37) = &H0bArray(38) = &H0bArray(39) = &H1DbArray(40) = &HE0'' Right Alt-key'bArray(41) = &H0bArray(42) = &H0bArray(43) = &H38bArray(44) = &HE0'' Null terminator'bArray(45) = &H0bArray(46) = &H0bArray(47) = &H0bArray(48) = &H0'' Set the new registry value, does not take effect until the next reboot.' You can use my registry module or your own routine to write the value to the registry.'Reg_SetKeyValue HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Control\KeyboardLayout", "Scancode Map", bArray, REG_BINARYEnd Sub If you use this code, please mention "www.TheScarms.com"Found here:http://www.thescarms.com/vbasic/StopReBoot.aspAnd here is another method, involving a new GINA STUB:http://www.dotnet247.com/247reference/msgs/36/181489.aspxHello,Thanks for your post. As I understand, you want to trap and disableCtrl-Alt-Delete programmatically in Win2K. Please correct me if there isany misunderstanding. I reviewed your description carefully, and now I'dlike to share the following information with you:1. As documented in the article to which you pointed, you can useDisableTaskMgr to disable Ctrl+Alt+Del. To trap Ctrl+Alt+Del, you havethree options: write a GINA stub, write a keyboard driver, or replaceTaskMgr.exe with your own program. I recommend you create a GINA stub whichis comparatively easy to implement among these three options.2. However, we have to use VC instead of VB to implement a GINA Stub. Asyou know, a GINA Stub is a native dynamic-link library (DLL) exported toWinlogon that requires a valid, consistent function to call into. Thisrequires a DLL export, which .NET Framework does not support. Managed code(VB .NET, C#) has no concept of a consistent value for a function pointerbecause these function pointers are proxies that are built dynamically.3. There is an existing GINA Stub sample in MSDN. To trap/disableCtrl-Alt-Delete, you just need to replace its WlxLoggedOnSAS with the onein my code snippet below.GinaStub Sample: Pass-through "Stub" Ginahttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpginastubsample.asp?frame=true/*----------------------------code snippet----------------------*/intWINAPIWlxLoggedOnSAS(PVOID pWlxContext,DWORD dwSasType,PVOID pReserved){if (dwSasType == WLX_SAS_TYPE_CTRL_ALT_DEL){/* Add additional code of you own */return WLX_SAS_ACTION_NONE;}elsereturn GWlxLoggedOnSAS( pWlxContext, dwSasType, pReserved );}/*-----------------------------end of--------------------------------*/In addition, I believe the following MSDN aritcles are helpful:WlxLoggedOnSAShttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/wlxloggedonsas.aspLoading and Running a GINA DLLhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/loading_and_running_a_gina_dll.aspPlease feel free to let me know if you have any problems or concerns.Have a nice day!Regards,HuangTMMicrosoft Online Partner SupportMCSE/MCSDjaclaz
Cool Surfer Posted August 22, 2004 Posted August 22, 2004 Installing powertoys for windows helps in this, there is an auto logon optionalso. Download tweak UI and right click on the inf file and install it.http://www.microsoft.com/windows95/downloa...Set/Default.aspDont install powertoys for xp, it des not work.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now