Troubleshooting Logon Scripts
Use this list to troubleshoot the most common problems with logon scripts:
- Make sure the logon script is in the directory specified in the Server option of Control Panel. When Windows NT is installed, the logon script directory is as follows:
systemroot\system32\repl\import\scripts
The only valid path option is a subdirectory of the default logon script directory. If the path is any other directory or it uses the environment variable %homepath%, the logon script fails.
- If the logon script is on an NTFS partition, make sure the user has Read permission for the logon script directory. If no permissions have been explicitly assigned, the logon script might fail without providing an error message.
- Make sure the logon script has a filename extension of either .CMD or .BAT. The .EXE extension is also supported, but only for genuine executable programs. If you use a nondefault file extension for your processor, be sure to specify it with the filename of the logon script.
Attempting to use the .EXE extension for a script file results in the following error message:
NTVDM CPU has encountered an illegal instruction.
If this error message appears, close the window in which the logon script is running.
- If the logon script is to run on a Windows for Workgroups computer, make sure the Windows NT domain name is specified as a startup option in the Network option of Control Panel.
- Make sure any new or modified logon scripts have been replicated to all domain controllers. Replication of logon scripts happens periodically, not immediately. To manually force replication, use Server Manager. See the Server Manager chapter of the Windows NT Server System Guide for detailed information.