|Fix Temporary Profiles on RDS Server.|
Problem: Users receive temporary profiles each time they log onto the Remote Desktop Server. The problem is not uniform and may only occur for individual users.
Possible errors may read, "Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off."
Background: RDS server is configured with User Profile Disks (UPD). The problem usually occurs when the user session state is disconnected. Although the user is not connected their sessions continue to run in the server background -therefore their UPD remains attached to the RDS server. Users will receive temporary profiles if their UPD was attached to the RDS server when it was restarted.
How to fix temporary profile issues:
- Have user log off the server. Do not allow users to log on while troubleshooting.
- Attempt to delete the temporary profile from Advanced System Properties:
Go to Control Panel → System → Advanced System Properties → Advanced → User Profiles → Settings.
Delete any profiles with Type set as TEMP.
- Delete any temporary use profiles from the ProfileList in Regedit.
HKLM\SOFTWARE\Microsoft\Windows NT\Current Version\ProfileList
Profiles are listed using objectSIDs, for example:
Identify and delete any objectSIDs that have a .bak suffix, for example:
N.B., each objectSID profile has an expandable string value called ProfileImagePath. Use this string value to easily identify individual users, for example:
Value Name: ProfileImagePath
Value Data: C:\Users\BGates
- Finally, manually delete any temporary profiles located in c:\users\, for example:
Set GPO policy to log off disconnected sessions after X minutes. This will reduce the likelihood that UPDs will remain connected if the server is restarted or loses power.
Additionally, ensure all user sessions are logged off and do not allow new connections to hosts before performing maintenance and/or restarts.