User profile creation failure for users with certain names

Symptoms


User got prompted with a dialog box saying he\she is logging on using a temp profile.


In the userenv.log, we can see:

USERENV(51c.520) 15:57:49:032 LoadUserProfile: lpProfileInfo->lpUserName = <Con.anyname>
..........
USERENV(51c.520) 15:57:49:156 ComputeLocalProfileName: Could not generate a profile directory.  Error = 2
USERENV(51c.520) 15:57:49:156 RestoreUserProfile:  CreateLocalProfileImage failed. Unable to create a new profile!
..........

Cause

The user's name starts with a Windows device name. System cannot create folders with these names. The strings are following.

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

for example, users with following names will meet this problem.

con

con.

con.name

prn

prn.

prn.name

com1

com1.

com1.name

Resolution

change the user's name to not start with the specified strings.
Properties

Article ID: 2709159 - Last Review: 9 May 2012 - Revision: 1

Feedback