• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Windows Server 2012 terminal services creating multiple user profiles

Hi

I installed a Multipoint 2012 System in a School and I'm having problems with user profile folders.
I partitioned the single hard disk to C: (protected op sys volume) and E: (user files and folders).
I changed the registry key to create users folders under E:\Users and this initially worked fine.
I log in as User1 and I get a new folder E:\Users\User1 with all the usual folders underneath.

However I now find that randomly when I restart the server and then login as the same user I get a new folder E:\Users\User1.MULTIPOINT-1.000 and this increases over time to E:\Users....001 and so on.

This has the effect that the next time the user logs on he cannot see his documents (they are in the original User1\Documents folder) because the new profile folder has been created.

Help - how do I stop this happening?
0
CNC-Guy
Asked:
CNC-Guy
  • 7
  • 5
3 Solutions
 
VB ITSSpecialist ConsultantCommented:
This usually occurs when something has a lock on files within the profile. Are there any errors in the event logs when the user logs in and these folders are created? Download Process Explorer and check the user's profile path for any open handles.

Are you using roaming profiles? If so, try clearing out any .bak keys found in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ as this can cause temp profiles to load.
0
 
CNC-GuyAuthor Commented:
There are no .BAK entries in the registry.
Not sure whether Multipoint Server uses roaming profiles - how would I check?
0
 
VB ITSSpecialist ConsultantCommented:
My apologies, I just assumed you were using roaming profiles. Check the Profile and Remote Desktop Services Profile tabs in Active Directory Users and Computers to check if accounts are using roaming profiles.

Have you tried downloading Process Explorer to see if there are any open handles in the profile folder that gets duplicated?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
CNC-GuyAuthor Commented:
There is no AD as Multipoint 2012 is a standalone system running on Windows 2012 Standard platform with MSTS for the clients.
So I cannot check that.
How else would I check on a W2012 Standard install?
I have PE already and will get back on the system tomorrow.
0
 
VB ITSSpecialist ConsultantCommented:
If you don't use AD then I highly doubt you'll be using roaming profiles. You can check anyway by going to Control Panel > System > Advanced system settings > click the Settings button for User Profiles > look under the Type column, it will either say Local or Roaming.

See how you go with PE, there's probably something holding a lock on one of the files causing the new user profiles to be created.
0
 
CNC-GuyAuthor Commented:
I will try it - any idea what I am looking for?
One other question - I have deleted the older profile folders as they are no longer in use.
I would like to rename the latest profiles to just the username again.
How can I do this?
I tried renaming the folder and then changing the registry entries for that folder.
But when I login as that user I get an error.
If I delete the user and the folder then I get the correct user folder back next time I login but there are hundreds of users.
0
 
CNC-GuyAuthor Commented:
One thing I have noticed is that the users on the remote desktops only get a "Disconnect" option and not a "Logoff" option. When I check the server the user is logged and "suspended"

Is there a way I can change this so the remote users see a "Logoff" option?
0
 
VB ITSSpecialist ConsultantCommented:
I would like to rename the latest profiles to just the username again.
How can I do this?
I tried renaming the folder and then changing the registry entries for that folder.
What registry entry did you modify? In theory you should be able to just rename the folder in C:\Users\ then modify their corresponding ProfileImagePath key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList to match the new path.
One thing I have noticed is that the users on the remote desktops only get a "Disconnect" option and not a "Logoff" option. When I check the server the user is logged and "suspended"

Is there a way I can change this so the remote users see a "Logoff" option?
OK this might explain your issue. Where exactly are you seeing this Disconnect option? To log off properly in 2012, your users need to go to the Start Screen (press the Windows key or move your mouse to the bottom left corner) > left click on your username in the top right corner > then click on Sign out. Here's a screenshot of what it looks like:
2012-RDS-Logoff.pngWhat you might want to consider is implementing some time limits for disconnected sessions. As you don't have AD, the best way to achieve this would be to modify the Local Computer Policy:
Press the Windows + X keys simultaneously > click on Run in the menu that appears in the bottom left corner > type in gpedit.msc > the Local Group Policy Editor window should then appear.
In the Local Group Policy Editor window, expand User ConfigurationAdministrative TemplatesWindows ComponentsRemote Desktop ServicesRemote Desktop Session HostSession Time Limits
Right click on Set time limit for disconnected sessionsEdit > select Enable > select your desired time limit in the End a disconnected session drop down menu
This setting will automatically end any disconnected sessions running on your server after the time period you selected above.
0
 
CNC-GuyAuthor Commented:
OK -the users were clicking the power button and then disconnecting.
However this does not appear to be the problem as I logged off all the users, restarted the MP server and then logged in again as a user and it created a new profile.
This after a clean boot.
Any ideas.

I already changed the MaxDisconnectionTime registry key to 1000 (1 sec) under HKLM/SW/Policies/Ms/Win/ NT/Terminal Services to force a logoff and it did not help.

Thanks
0
 
VB ITSSpecialist ConsultantCommented:
Hmm any warnings/errors in the Event Logs on the 2012 TS when the affected users log on?
0
 
CNC-GuyAuthor Commented:
I'm back in the UK now and still have the same problem.
I can also reproduce it here and have nailed it down to this:

I disable disk protection on C and create a new user.
Creating the user does not create the ProfileList registry entry.
So when I re-enable disk protection and THEN login as that user the registry ProfileList entry is created in cache. Everything works as it should.
However the next time the server is restarted (every night) the registry is returned back to original state (no entry for that user) but the users documents still exist on drive E:
The user logs in and Windows creates a new registry entry for that user AND, seeing that a profile directory already exists for that user on E drive, it renames the profile entry to username.MULTIPOINT-1 and creates a set of profile folders on E drive under that name.
The user cannot see his old documents as they are in the original folders.

I have fixed this by doing the following:
Disable Disk protection.
Create the user accounts for each student
Login in as each student and accept the Multipoint warning.
Open a Word document and go through the Office intro screens clicking Ask Me Later for updates.
Sign Out from that user.

Now re-enable disk protection and everything works as it should.

Is there any way to log on those users from a script file or PowerShell so that the user ProfileList Entries are created in the registry? There are 40 new students each term - so it's tedious.
0
 
CNC-GuyAuthor Commented:
VB_ITS gave me some excellent pointers which helped me find the solution but did not provide a complete solution.
Multipoint 2012 seems to be a minority product with little support.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now