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

ID: Q246680


The information in this article applies to:
  • Microsoft BackOffice Small Business Server versions 4.0, 4.0a, 4.5


SUMMARY

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.


MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals 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 needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:

http://www.microsoft.com/mcsp/
For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
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:
    if "%PROCESSOR_ARCHITECTURE%" == "" set DIRECTORY=win95
    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:
    
    :win95
    set DIRECTORY=win95
    rem any other commands for win9x clients go here
    goto end
    
    :winnt
    set DIRECTORY=i386
    rem any other commands for NT clients go here
    goto end
    
    :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.


  5. Click OK.


  6. 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:
Q137979 Creating Windows 95 Home Directories on Windows NT Server

Additional query words: smallbiz

Keywords : kbnetwork kbtool
Version : winnt:4.0,4.0a,4.5
Platform : winnt
Issue type : kbinfo


Last Reviewed: January 6, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.