When you run a logon script, it runs in background. You can force both local and domain logon scripts to run in the foreground on Windows NT 4.0, Windows 2000, and W9x, by using the Start command.

To create a domain logon script that runs in the foreground:

1. Create the script as Logon.bat.

2. Create a LogonFG.bat with the following command:

    start /max logon.bat

3. Place both files in the Netlogon share of your domain controllers.

4. If the DC is a Windows NT 4.0 computer, start User Manager for Domains and configure the users to use LogonFG.bat.

5. If the DC is a Windows 2000 computer, start the Active Directory Users and Computers MMC snap-in and configure the users to use LogonFG.bat.

NOTE: For Windows 2000-based clients, the following Group Policy settings for logon scripts can be configured:

<b>
      User Configuration\Administrative Templates\System\Logon\Logoff:

          Disable logoff
          Run logon scripts synchronously
          Run legacy logon scripts hidden
          Run logon scripts visible
          Run logoff scripts visible

      Computer Configuration\Adminstrative Templates\System\Logon

          Run logon scripts synchronously
          Run legacy logon scripts hidden
          Run startup scripts visible
          Run shutdown scripts visible
          Maximum wait time for Group Policy scripts</b>
NOTE: For Windows NT, see tip 0099.

NOTE: You may want to use the /wait switch, if your client OS supports it, to delay the load of the desktop until Logon.bat is finished.