How to Use %LOGONSERVER% to Distribute User Profiles

Last reviewed: January 9, 1998
Article ID: Q141714
The information in this article applies to:
  • Microsoft Windows NT Server versions 3.5, 3.51 and 4.0

SUMMARY

If you want to specify a domain server that validates a user logon, use the environment variable %LOGONSERVER% in a PATH statement. This article describes how you can use %LOGONSERVER% to distribute user profiles.

MORE INFORMATION

Environment variables do not work in user profile paths unlike logon scripts which are designed to run on the server that validates its logon request. This makes it difficult to provide redundancy for user profiles.

When a user logs on, %LOGONSERVER% is defined and set to the name of the validating computer. It is not propagated to a user's environment variables prior to NT 4.0 SP3.

 For example, if the user's profile path is
%logonserver%\profiles\user1.man and the name of the validating server is MYSERVER, the user profile path is set to \\MYSERVER\profiles\user1.man. Therefore, if you maintain a copy of the user profiles on each domain controller, users can access their user profiles when the primary domain controller is unavailable. %LOGONSERVER% is an undocumented environment variable.

When you specify a path statement for the user profile path, the following entry in User Manager is valid:

   %logonserver%\<share name>\<profile>.<usr or man>

NOTE: To simplify the maintenance of user profiles on multiple servers, use Directory Replication to copy the user profiles from the primary domain controller (PDC) to the backup domain controllers (BDCs).

Roaming User Profiles Under Windows NT 4.0

If you use %LOGONSERVER% with roaming user profiles under Windows NT 4.0, roaming user profiles are saved to the logon server (typically a BDC) when users log off. If the user is validated by different logon server the next time he or she logs on, a message appears indicating the local copy of the roaming user profile is newer than the copy on the logon server (assuming that the user logs on to the same computer). If the user logs on to a different computer, and is validated by a logon server that does not contain the latest copy of his or her roaming user profile, it appears to the user that his or her changes to the roaming user profile have been lost. This can cause confusion and increase internal support costs for companies using roaming user profiles.

For this reason, it is best to use %LOGONSERVER% with only mandatory user profiles, and not with roaming user profiles.


Additional query words: prodnt sur
Keywords : ntdomain kbnetwork
Version : 3.5 3.51 4.0
Platform : winnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.