Microsoft KB Archive/245339

= How to Customize the Logon Script Template in Small Business Server =

Article ID: 245339

Article Last Modified on 11/19/2003

-

APPLIES TO


 * Microsoft BackOffice Small Business Server 4.0
 * Microsoft BackOffice Small Business Server 4.0a
 * Microsoft BackOffice Small Business Server 4.5

-



This article was previously published under Q245339



SUMMARY
Each time you run the Setup Computer Wizard, a logon script is created for a specified user. A default logon script template is used to create the logon script for each user.



MORE INFORMATION
To customize the logon script template:
 * 1) In the %SystemRoot%\SmallBusiness\Template folder, rename the Template.bat file to Template.old.
 * 2) Open the Template.old file. This file contains several replaceable parameters including   (which corresponds to the user name for the user specified in the Setup Computer Wizard) and   (which corresponds to the machine name of the computer running SBS).
 * 3) After you make the appropriate changes, save the file as Template.bat.

If there are existing users, you need to save this template to the user's logon script folder:
 * 1) Locate the %SystemRoot%\System32\Repl\Import\Scripts\SmallBusiness folder. Each user's logon script is located here. In this example, Jane Doe is a user that you created before the logon script was modified. Her user name is jdoe.
 * 2) Rename the Jdoe.bat file to Jdoe.old.
 * 3) Paste a copy of the modified Template.bat file in the folder, and then rename it Jdoe.bat.
 * 4) Repeat this action for each existing user.

