How to Hide the Logon Script Dialog Box on a Windows NT ClientID: Q176197
|
When the logon script runs, a dialog box is presented until the script finishes. Many administrators want a way to minimize this dialog box while it is running, or have it perform in the background so users aren't aware of the logon script. Because Windows NT does not use the LMSCRIPT file and you do not want to change the default properties of Cmd.exe, other methods must be used.
Create a batch file that calls the actual logon script. Using Notepad,
create a file that has the following entry:
START /MIN LOGON.BAT
HKEY_CURRENT_USER\Console\_ComputerName_NETLOGON_LogonScript
Because logon scripts reside in the NetLogon share of every domain
controller,
the chances are good that you may run the logon script from a different
server than the one used in the above example.
Your file is represented in the registry as
_ComputerName_NETLOGON_LogonScript. The computer name obviously won't be
the same if you are validated by a different controller. Here are two
methods to solve this problem.
run \\PDC\NETLOGON\logon.bat
REGEDIT4
[HKEY_CURRENT_USER\Console\__SERVER_NETLOGON_logon.bat]
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:0001000d
"WindowPosition"=dword:01c00000
"ScreenBufferSize"=dword:0001000d
"FontSize"=dword:000c0008
"FontFamily"=dword:00000030
"FontWeight"=dword:00000190
REGEDIT4
[HKEY_CURRENT_USER\Console\__SERVER_NETLOGON_logon.bat]
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:0001000d
"WindowPosition"=dword:01c00000
"ScreenBufferSize"=dword:0001000d
"FontSize"=dword:000c0008
"FontFamily"=dword:00000030
"FontWeight"=dword:00000190
[HKEY_CURRENT_USER\Console\__SERVER2_NETLOGON_logon.bat]
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:0001000d
"WindowPosition"=dword:01c00000
"ScreenBufferSize"=dword:0001000d
"FontSize"=dword:000c0008
"FontFamily"=dword:00000030
"FontWeight"=dword:00000190
[HKEY_CURRENT_USER\Console\__SERVER3_NETLOGON_logon.bat]
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:0001000d
"WindowPosition"=dword:01c00000
"ScreenBufferSize"=dword:0001000d
"FontSize"=dword:000c0008
"FontFamily"=dword:00000030
"FontWeight"=dword:00000190
Keywords : NTSrvWkst
Version : winnt:3.5,3.51,4.0
Platform : winnt
Issue type :
Last Reviewed: April 21, 1999