Table of Contents

Windows Roaming Profiles

See also Why Use Roaming Profiles with Redirected Folders

See also Folder Redirection

See also Windows Home Directories

See also Windows Group Policy

http://technet.microsoft.com/en-us/library/bb490855.aspx#EKAA

http://www.computer-howto.com/2011/09/moving-user-profiles-new-server

http://richardkok.wordpress.com/2011/04/14/configuring-windows-7-roaming-profiles-on-a-windows-2008-r2-server/

Why Use Roaming Profiles

Upside

Roaming profiles provide valuable functionality:

Downside

There are down sides too:

The Plan

  1. Create a top-level share to hold roaming profiles
  2. Roaming profiles are created automatically when the user logs in and logs out
  3. Folder redirection minimizes the downside of roaming profiles

Top Level Profiles Folder

Folder Structure

We now have a batch file (script) to create these folders, set the permissions and share the folders.

This folder structure supports implementation of these four functions and permits the functions to be implemented separately at different times or together at once.

E:\Shares
         \Share1
         \Share2
          
E:\Homes
        \User1
        \User2

E:\Profiles
                      
E:\Redirected
        \User1
        \User2
             \AppData
             \Documents

Top-Level 'Profiles' Folder Configuration

User or Group File/Folder Permissions (Security Tab) Comment
Administrators Full Control This Folder, Subfolders and Files
SYSTEM Full Control This Folder, Subfolders and Files
CREATOR OWNER Full Control Subfolders and Files Only
Everyone Full Control This Folder Only
User or Group Share Permissions (Sharing Tab)
Everyone Full Control
Note that these settings allow for the automatic creation of per-user sub-folders of the top-level 'Profiles' folder and forbid users from accessing other users' profiles.
Unless the recommended Group Policy changes are made (see below), even administrators cannot access the user profile folders without taking ownership…which will break the roaming profiles.
Use a VSS-aware backup tool to make backups.
Immediately after joining a computer to the domain move the computer from the default Computer container to the new Company Computer container in ADUC.

Top-Level 'Profiles' Folder Creation

  1. Create a folder 'Profiles'
    1. Disable permissions inheritance
    2. Set folder permissions per the table above
      1. Use the Advanced option to edit permissions
  2. Share the folder 'Profiles'
    1. Set the share name as 'Profiles$'
      1. The dollar symbol hides the share for better security
      2. Leave off the $ if you prefer
      3. Use Properties → Sharing → Advanced to create hidden shares
    2. Set the share permissions per the table

Group Policy Settings for Roaming Profiles

See also Group Policy

  1. Modify Group Policy
    1. Start → Run → gpmc.msc
    2. Right-click the container holding computer objects and select Create a GPO in this domain and link it here
      1. Name it something useful like Roaming Profiles
    3. Computer Configuration → Policy → Administrative Templates → System → User Profiles
      1. Do not check for user ownership of Roaming Profile FoldersEnable
      2. Add the Administrators security group to roaming user profilesEnable

Enable Roaming Profiles for Users

Modify each user with the Active Directory Users and Computers (ADUC) tool.

  1. Browse to the container holding user objects
  2. Hold the control key down and select all users you want to modify
  3. Right-click one of the selected accounts → Properties
  4. Select the Profile tab
  5. Select the roaming profile checkbox and fill in the Profile Path
    1. \\<profile server name>\Profiles$\%username%
    2. Click OK to save
  6. Test by logging in at a workstation as one of the selected users
    1. Log off, then look in the Profiles folder
    2. If the roaming profile was not created, wait a few minutes and test again

Migrate Roaming Profiles to New Server

FIXME All untested…

https://www.virtualizationhowto.com/2011/09/moving-user-profiles-new-server/

:!: This can be done even with users logged in!

  1. Use a VSS aware backup utility to back up the current roaming profiles share.
  2. Restore to the new location preserving all permissions.
  3. Edit the properties of the Active Directory User to point to the new profile location.

Notes From Others

FIXME

Reboot all workstations to verify all users are logged out.

Copy roaming profiles to new server, preserving permissions:

robocopy.exe \\OldLocation\Users \\NewLocationUsers /MIR /COPY:DATSO /W:0 /R:1 /V /LOG:D\users_copy.log
robocopy.exe C:\Users\%USERNAME%\AppData\Roaming \\share\Profiles\%USERNAME%.V2\AppData\Roaming /MIR /COPY:DATSO /W:5 /R:10 /XO /V /LOG:C:\%USERNAME%.log

User Profiles Troubleshooting

Check Workstation Event Log

The first troubleshooting step should be to examine the Application event log on the client computer, and determine the error.

If this is a roaming profile, be sure to check for the correct permissions on the 'Profiles' folder. Check share permissions as well as NTFS permissions.

Enable Advanced Logging

In addition to logging events in the Application Event log, User Profiles can provide a detailed log to aid troubleshooting. To create a detailed log file for user profiles, use regedit and locate the following path:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon

Create a new value called UserEnvDebugLevel as a REG_DWORD and set the value to 30002 in hexadecimal format.

The log file can be found at: %windir%\debug\usermode\userenv.log.

Delete Existing Profile Folders

You might try deleting a problem user's profile and redirected folders from the server so that they will be recreated cleanly according to your Group Policies and ADUC settings at the next user login.

Right-click My Computer → Properties → Advanced → User Profiles

View All Shares

View all shares including hidden shares (share name ending with $ symbol):

net share