Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

User profile creation failure for users with certain names


View products that this article applies to.

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!
..........

↑ Back to the top


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

↑ Back to the top


Resolution

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

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2709159
Revision : 1
Created on : 1/7/2017
Published on : 5/9/2012
Exists online : False
Views : 245