Link to home
Start Free TrialLog in
Avatar of PIMSupport
PIMSupport

asked on

Terminal Server 20120 R2 loading temp profiles intermittently

I deployed a 2012 R2 terminal server for a client recently and intermittently when they log in they are getting temp profiles. As far as I can tell there is no rhyme or reason to when it happens. Has anyone else experienced this and found a way to prevent it from happening? I know the profile attaches both to the registry and file system so there is an extra step not used in previous iterations of terminal server. Is there a way to make that process more seamless or is it really just a craps shoot?
ASKER CERTIFIED SOLUTION
Avatar of Spike99
Spike99
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PIMSupport
PIMSupport

ASKER

After getting a decent pool of information to gather from it appears that when the server restarts not all the user profiles are removed from the registry hive. I found one user who still was in the registry after the restart and when I logged in as that user the .bak profile appeared and it acted like it was their first time logging in. I logged the user back out, deleted the .bak profile, logged them back in and it worked.

Ideally they would log out every night before they leave but that is not going to happen every single time just because they have been in a culture of leaving it open or just disconnecting. I'm trying to break them of that habit but these are some older folks who are set in their ways and figuring out something to tweak on the machine end would be a better fix. I'm experimenting with a script I found to log off all terminal users but that was just recently and I am still working the bugs out.

The underlying issue here is that Backup Exec 2014 fails to back up this hyper-v terminal server if users are logged in. Something happens with the VSS and there are snapshot failures and all sorts of other headaches. Not only that but this place has 2 shifts so I am trying to get things done in a small window.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This appears to be a result of users being logged on when a server is restarted. I found a script that is working via task. The contents are below. Thanks again for your help.

@echo on
@CLS
cd\
for /f "tokens=3" %%a in ('query session ^| find /i "rdp" ^| find /v ">rdp"') do (if %%a LSS 65536 logoff.exe %%a)
ping 1.1.1.1 -n 1 -w 60000 > nul
for /f "tokens=2" %%i in ('QWinSta ^| Find /i "Disc"') Do Echo y | RWinSta %%i
cool, I was glad I could help.