Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/246680

From BetaArchive Wiki
Knowledge Base

How to Modify the SBS User Logon Template for a Mixed Operating System Environment

Article ID: 246680

Article Last Modified on 6/17/2005


  • 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 Q246680


This article describes how to modify the Small Business Server (SBS) user logon script file template to support roving user profiles in a mixed Microsoft Windows 98/95 and Microsoft Windows NT 4.0 environment.


Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. "NOTE: Microsoft does not support the modification of wizards and templates. Modifications done by the user are at the user's risk and constitute no obligations or warranties, either expressed or implied, by Microsoft.
" If you need to use roving user profiles for users that log on to either Windows 98/95-based, or Windows NT-based workstations connected to a BackOffice SBS computer, you must modify the default user logon script template. In a mixed operating system environment there are some scripting commands that need to be managed differently depending upon the operating system your users log on to.

To edit the script template:

  1. Double-click My Computer, double-click drive C, and then double-click the SmallBusiness folder.
  2. Double-click the Template folder, right-click the Template.bat file, and then click Edit.
  3. Click File, click Save As, type Template.old, and then press ENTER.
  4. View the following line:


    Change it to:

    if "%PROCESSOR_ARCHITECTURE%" == "" goto win95

  5. View the following line:

    if "%PROCESSOR_ARCHITECTURE%" == "x86" set DIRECTORY=i386

    Change it to:

    if "%PROCESSOR_ARCHITECTURE%" == "x86" goto winnt

  6. View the following line:

    if "%DIRECTORY%" == "" goto exit

    Add the following lines below this line:

    set DIRECTORY=win95
    rem any other commands for win9x clients go here
    goto end
    set DIRECTORY=i386
    rem any other commands for NT clients go here
    goto end
  7. On the File menu, click Save As, type Template.bat, press ENTER, and then quit Notepad.

NOTE: If this logon script is to be used to execute a net use * /HOME command for Windows 95/98 clients, you must also make configuration changes in User Manager for Domains for each user who needs the home folder mappings:

  1. On the SBS server, click Start, point to Programs, and then click Administrative Tools.
  2. Click User Manager for Domains, and then double-click the appropriate user to configure.
  3. Click Profile, click Connect, and then select the appropriate drive letter.
  4. Enter the path to the user's folder using the following syntax

\\server name\share name

where server name is the server name and share name is the share name to the C:\UsersSharedFolders\Guest folder.

  1. Click OK.
  2. Repeat this procedure for all users that need to be configured.

For additional information about creating user home directories, click the article number below to view the article in the Microsoft Knowledge Base:

137979 Creating Windows 95 Home Directories on Windows NT Server

Additional query words: smallbiz

Keywords: kbinfo kbnetwork KB246680