- Problems using DFS Namespaces
- Temporary Profiles
I have seen at a customer sites using 2008 R2 file servers sometimes results in temporary profiles. This happens when the user logs off and the 2008 R2 file server does not release the file handle to the server. This results in the VHD being locked and as a result, when users login they receive a temporary profile.
In this scenario we confirmed there was no real time AV scanning on the server or third party products that could be locking the server. It only happens rarely but enough to get the odd user complain to service desk they are getting a temporary profile.
When the VHD is locked on the file server, restarting the Server service or restarting the file server unlocks the file again (both which result in downtime).
I worked with Microsoft PSS support on this case under 115052712773011 and got no where. After upgrading the file server to 2012 R2, we had no more issues with user profile disks being locked under a file handle on the file server. Microsoft said that it could be an issue when dealing with the legacy SMB 2.1 protocol where the legacy protocol fails to remove the file handle on the User Profile Disk after the user logs off.
When a Windows machine connects to a legacy operating system for file shares, it will always use the legacy version of the SMB protocol as shown in the following table. It is recommended to always utilise SMB 3.02 when using Remote Desktop Services 2012 R2 which means you need a 2012 R2 file server for storing the profile disks.