Temporary profile issues in Windows 2012

Temporary profile issues in Windows 2012

Issue: We are getting randomly temporary profiles in Windows 2012 from different users in our environment; we were thinking that the problem was on the server side but, we were able to replicate this issue when we use wnos 8.0_030 and 8.0_031; we are not getting temporary profile in wnos 7.1_122 or laptop (RDP 8.0 client).


I have been testing the following devices:
- R10 Wyse Clients (wnos 8.0_030 and 8.0_031)
- R10 Wyse Client (wnos 7.1_122)
- Laptop with Windows 7 (Remote desktop Client 8.0) – Remote Connection

We are using RDS as a remote desktop session mode and we are using User Disk Profile(VHDx files) in the collection. Right now, we are using redirecting profiles for AppData, Desktop, Documents, Downloads, Favorites; Music, Pictures and My Music follow the documents folder. Do you think redirect folders should affect the login. We are not using roaming profile.

Our current servers are:
1 RDSAdmin (console managment)
1 RDSCB (Connection Broker) - This server has the following roles: Connection Broker, Web Access, Gateway and Licensing.
2 RDS (RDS Host)
2 User Disk profile Servers - These servers are hosting the vhdx files for our sessions. The main server is replicating to the other user disk profile server using DFSR technologies. I didnt see any errors on this server about user profile.
1 staffapp - Server with special apps (RemoteApp Server)

Let me know if you need additional information on this.

Thanks!

0 Kudos
16 Replies
Leon Kan Li
1 Nickel

RE: Temporary profile issues in Windows 2012

Thanks for the feedback; it sounds interesting... Could you elaborate a little bit regarding the 'randomly temporary profiles' you were getting with e.g. what's the name of it? 

Furthermore, what is the server with the publihed apps - Win7, 2008R2, or Win8? I assume the temporary profiles were generated by connecting to the published apps not any desktop right?

Regards,
Leon Li

Tags (2)
0 Kudos

RE: Temporary profile issues in Windows 2012

Hi, 

You will see the answer to your questions in blue

Thanks for the feedback; it sounds interesting... Could you elaborate a little bit regarding the 'randomly temporary profiles' you were getting with e.g. what's the name of it? 

Below, you will see the windows messages that we got from event logs from Windows:

1)
Windows has backed up this user profile. Windows will automatically try to use the backup profile the next time this user logs on.
(Log Name: Application, Source: User Profile Service, EventID 1515, Level Error, User Wolf, Server RDS2.domain.com)

2)
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.
(Log Name: Application, Source: User Profile Service, EventID 1511, Level Error, User Wolf, Server RDS2.domain.com)


Furthermore, what is the server with the publihed apps - Win7, 2008R2, or Win8? I assume the temporary profiles were generated by connecting to the published apps not any desktop right?

The issue is happening in Desktop sessions. We didnt find any problem with published apps yet. Let me give further details about our environment and our set up:

1 RDSCB (Connection Broker) - This server has the following roles: Connection Broker, Web Access, Gateway and Licensing.
2 RDS (RDS Host)
2 User Disk profile Servers - These servers are hosting the vhdx files for our sessions. The main server is replicating to the other user disk profile server using DFSR technologies. I didnt see any errors on this server about user profile.

The VHDx template reside in User Disk Profile Server; this server is using Windows 2012. 
"During first logon, a virtual disk (VHDX) is created from a template disk. This VHDX is attached RD Session Host server that the user is logging on to. The profile service is then notified to use this VHDX as the location for the user’s profile. When the user logs off, the VHDX is then detached from the RD Session Host server. 

The entire user’s profile is stored on the user profile disk. This includes the Documents folder, the user’s registry hive (holds application and Windows settings).

On subsequent logons to the collection, the VHDX is remounted to RD Session Host server the user is logging on to. The user then has access to everything in his or her profile, even if this is a different RD Session Host".

Thanks for your response and let me know if you need further information on this issue.

Tags (2)
0 Kudos
Highlighted
Leon Kan Li
1 Nickel

RE: Temporary profile issues in Windows 2012

OK we are able to reproduce the issue now; it does happen on WTOS build 31 but seems not there with Windows Web Access... and user changes with 'temporary profile' will be lost upon exit.

We are working with Dev for investigation and will get back soon.

Regards,
Leon Li

Tags (2)
0 Kudos
Leon Kan Li
1 Nickel

RE: Temporary profile issues in Windows 2012

Dear There,

We double checked and found this only reproducible with 1 user from our end, which is reproducible from both WTOS 8.0 and Windows clients (Web access). WTOS 7.1 could be ignored "because 7.1 doesn’t handle load balance server token. So it will connect to connection broker directly." 

We are able to resolve the problem from our end with steps below on server side:

1. Backup user profile
2. Enter reg editor
3. Find user SID at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
4. There should be 2 SIDs e.g. S-1-5-21-278931591-1947559536-3932021206-7425 and S-1-5-21-278931591-1947559536-3932021206-7425.bak -- back up both if possible
5. Rename the first one to *.old and rename the *.bak by removing '.bak'
6. Restart computer

Above steps resolved the problem at our end and connecting from WTOS will not see temporary profile anymore; referece article can be found at http://support.microsoft.com/kb/9472...?wa=wsignin1.0

Please kindly confirm if this is any different from your side or any further problem about it.

Regards,
Leon Li

Tags (2)
0 Kudos

RE: Temporary profile issues in Windows 2012

Leon Kan Li,

We applied the workaround and it worked great for that day but, if we logout and log back in again, we might get the temporary profile again. In our current environment, we have 6 people using windows 2012 RDS and we were getting temporary profiles at least for two people everyday. Imagine if we deploy it for 300 users, we will be receiving many calls for that issue.

I was using WNOS .1_133 and I didn't get any temporary profile in my current environment. I am not sure what is causing this issue. 

Thanks for your support on this!

Tags (2)
0 Kudos
Leon Kan Li
1 Nickel

RE: Temporary profile issues in Windows 2012

Dear There,

I understand the issue... when we are seeing it from WTOS 8.0 we are also seeing it from Windows client (web access) so DEV can hardly do anything from WTOS side. With WTOS 7.1 it works in a different way (as it's RDP7 etc...)

Could you help to check if this is reproducible for those users in problem from your side with Windows client (RDP8 client)?

Regards,
Leon Li

Tags (2)
0 Kudos
JohnAtkins
2 Iron

RE: Temporary profile issues in Windows 2012

Hello RL,
If you can validate this issue from a Windows client, then this will allow us to narrow down the root cause of the issue. It is possible this might be a Microsoft server bug, and with your help we can narrow this down.

Thanks
John

Tags (1)
0 Kudos

RE: Temporary profile issues in Windows 2012

Hi, 

I wasn't able to reproduce this error using windows RDP 8.0 client on a Windows 7 computer. I logged in 15 times and we didn't get any temporary profile. It might be something with the firmware (WNOS 8.0) because we didn't have this problem in WNOS 7.1.

Let me know if you need further details on this and thanks for your assistance.

Tags (2)
0 Kudos
Leon Kan Li
1 Nickel

RE: Temporary profile issues in Windows 2012

Dear There,

if possible could you help to try Windows RDP client from Windows 8 or Windows 2012?

WTOS 7.1 was with RDP 7 client and it works in a different way; according to DEV "because 7.1 doesn’t handle load balance server token. So it will connect to connection broker directly.". I'm not sure how the Windows RDP 8 client was used on Windows 7 computer, just in case there is a difference   

Regards,
Leon Li

Tags (2)
0 Kudos