Microsoft KB Archive/246680: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 53: Line 53:
== MORE INFORMATION ==
== MORE INFORMATION ==


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. &quot;'''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.<br />
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.<br />
&quot; 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.<br />
" 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.<br />
<br />
<br />
To edit the script template:
To edit the script template:
Line 64: Line 64:
<div class="indent">
<div class="indent">


<p>if &quot;%PROCESSOR_ARCHITECTURE%&quot; == &quot;&quot; set DIRECTORY=win95</p>
<p>if "%PROCESSOR_ARCHITECTURE%" == "" set DIRECTORY=win95</p>


</div>
</div>
Line 70: Line 70:
<div class="indent">
<div class="indent">


<p>if &quot;%PROCESSOR_ARCHITECTURE%&quot; == &quot;&quot; goto win95</p>
<p>if "%PROCESSOR_ARCHITECTURE%" == "" goto win95</p>


</div></li>
</div></li>
Line 76: Line 76:
<div class="indent">
<div class="indent">


<p>if &quot;%PROCESSOR_ARCHITECTURE%&quot; == &quot;x86&quot; set DIRECTORY=i386</p>
<p>if "%PROCESSOR_ARCHITECTURE%" == "x86" set DIRECTORY=i386</p>


</div>
</div>
Line 82: Line 82:
<div class="indent">
<div class="indent">


<p>if &quot;%PROCESSOR_ARCHITECTURE%&quot; == &quot;x86&quot; goto winnt</p>
<p>if "%PROCESSOR_ARCHITECTURE%" == "x86" goto winnt</p>


</div></li>
</div></li>
Line 88: Line 88:
<div class="indent">
<div class="indent">


<p>if &quot;%DIRECTORY%&quot; == &quot;&quot; goto exit</p>
<p>if "%DIRECTORY%" == "" goto exit</p>


</div>
</div>

Latest revision as of 13:51, 21 July 2020

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



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 Q246680

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. 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:

    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.

  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