Article ID: 265016 - View products that this article applies to.
This article was previously published under Q265016
NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center
(http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000)is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy
By default, logon scripts run in the background. You can use the Start.exe command-line tool to run local and domain logon scripts on computers that are running Windows.
To create a domain logon script that runs in the foreground by using Start.exe, create a file named Logon.bat that contains the commands that you want to run. Then, create a file named Newfile.bat to call the Logon.bat file. Place both files in the Netlogon share on the domain controllers. In a Windows-based domain, start the Active Directory Users and Computers tool in Microsoft Management Console (MMC) and configure the user to use the Newfile.bat file as the logon script.
NOTE: In a Microsoft Windows NT 4.0-based domain, start the User Manager for Domains tool and configure the users to use the Newfile.bat file as the logon script.
Include the following line in the Newfile.bat file:
start /max logon.batWhen a user logs on, the logon script runs in the foreground.
NOTE: The file names Logon.bat and Newfile.bat are used in this article for illustration purposes only. You can use other file names.
Preferred Method for Windows-Based ClientsThe preferred method for Windows-based clients is to use Group Policy to control the user's environment for logon scripts. The following Group Policy setting are available for logon scripts:
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/126410/EN-US/ )How to Start a Program From a Command Prompt in Windows
Article ID: 265016 - Last Review: March 1, 2007 - Revision: 3.4