Different mandatory user profiles for WinXP & Win7

We have a lot of computers running Windows XP and all users have identical mandatory user profiles when they log in. It was accomplished by setting the Profile path to \\server\profiles\winxp.man

Now we have some new Windows 7 computers and we'd like all users to have different mandatory users profiles (located at \\server\profiles\win7.man) when they log in to a computer running Windows 7. But I can only set one profile path in the Profile path field in the properties of a user in the Active Directory.

Is it possible to assign one mandatory user profile to all users when they log in to a WinXP machine and a different profile for Win7 computers?


Solution 1:

If you have roaming profiles enabled then WinXP and Win7 already save their profiles in separate folders by default, even though you've only got one folder specified in Active Directory. Windows 7 will quietly append a .V2 to the end of the folder name used by WinXP, and then use the .V2 version of the folder ignoring the other one, so for example:

Directory specified in Active Directory:

\\server\share\%username%

Directory actually used by XP:

\\server\share\%username%

Directory actually used by Windows 7:

\\server\share\%username%.V2

Have you creating the mandatory profile folder with .V2 in it to see if 7 will use that?

Disclaimer we don't use mandatory profiles, so this is a suggestion, rather than something I've tried.

Solution 2:

According to the KB article 973289, the correct procedure to do this is the following:

  • Create a mandatory profile share/structure. In your case, \Profiles\mandatory and \Profiles\mandatory.v2
  • Copy the default userprofile from a Windows XP client to the "mandatory" folder, and from a Windows 7 client to the "mandatory.v2" folder
  • Prepare your user accounts with the UNC to the mandatory profile. NB! Do -not- append .v2, Windows Vista/7 redirects to the correct folder automatically.

Solution 3:

On a related note, you might want to consider using group policies to set the per-machine roaming profile path instead of setting it per-user. This is supported for Vista and above.

Policy          Set roaming profile path for all users logging onto this computer
Category Path   Computer Configuration\Administrative Templates\System\User profiles\
Supported On    At least Microsoft Windows VistaRegistry
Key             HKLM\Software\Policies\Microsoft\Windows\System
Value           Machineprofilepath