A. Service Pack 4 introduces a new registry entry.
- Start the registry editor (regedit.exe)
- Move to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
- From the Edit menu select New - DWORD value
- Enter a name of DisableLockWorkstation and press Enter
- Double click on the new value and set to 1. Click OK
- Close the registry editor
Lock Workstation will now be greyed out.
This is also possible if you don't mind hacking one of the system dll files. The file that the ctrl-alt-del dialog is stored in is msgina.dll. Using any 32bit resource editor (such as one with a Win32 C++ compiler, Visual C++, Borland C++) you can edit this dll and remove the "Lock Workstation" button. Below are instructions for performing this with Visual C++ however for another resource editor find dialog #1650 and edit the attributes of the "Lock Workstation" to "inactive" or "invisible".
- Rename %systemroot%\system32\msgina.dll to msgina_orig.dll (this is so you have a backup)
- Copy the file back to be called msgina.dll
e.g. copy d:\winnt\system32\msgina_orig.dll d:\winnt\system32\msgina.dll
- Start Visual C++, and select open
- Change the type to Executable Files (.dll, .exe, .ocx)
- Move to the %systemroot%\system32 directory and select msgina.dll and click OK
- Once open, click on the dialog tree, and double click 1650
- Double click on the "Lock Workstation" button and deselect "visible"
- Close the dialog box and the from the file menu select Save
- Exit Visual C++ and reboot the machine
- Once the machine has booted up again the "Lock Workstation" button will no longer be displayed
There is now a utility written by Alaxander Frink which automates the above process available at http://www.barrett.com.au/Software/WindowsNT/index.html