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.

Whenever a user logs into the windows 2008 terminal server his profile isn’t created on the server.

We get an error in the event logs stating; “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.”

If you look at the registry while he’ logging on his sid pops up S-1-5-21-358069512-3665172036-1110668623-1438 but then when he logs off it disappears. There is a S-1-5-21-358069512-3665172036-1110668623-1438.bak - which i've since deleted during troubleshooting.

Inside the users directory where his machine points to it doesn’t actually create C:\users\*user name*\

Event log;
Log Name:      Application
Source:        Microsoft-Windows-User Profiles Service
Date:          18/01/2011 15:02:27
Event ID:      1511
Task Category: None
Level:         Error
Keywords:      
User:          domain\user
Computer:      TS8.domain.local
Description:
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.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
    <EventID>1511</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2011-01-18T15:02:27.534900600Z" />
    <EventRecordID>28553</EventRecordID>
    <Correlation />
    <Execution ProcessID="816" ThreadID="8636" />
    <Channel>Application</Channel>
    <Computer>TS8.domain.local</Computer>
    <Security UserID="S-1-5-21-358069512-3665172036-1110668623-1438" />
  </System>
  <EventData>
  </EventData>
</Event>


It seems that the issue is only affecting a couple of users, i can recreate the issue every time for this user mind as a test.
discussystemsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan_WhiteCommented:
I assue you are using roaming profiles?

Have you configured this via group policy or though ADUC on a per user basis?

Does the central profile folder "look" okay?  Have you tried renaming this as a reset test?

Are all new users getting this problem?  Could it be a default user folder problem?


All questions, no answers but hopefully give you somethings to check!
discussystemsAuthor Commented:
Thanks for replies.

I assue you are using roaming profiles?
Have you configured this via group policy or though ADUC on a per user basis?
Does the central profile folder "look" okay?  Have you tried renaming this as a reset test?
Are all new users getting this problem?  Could it be a default user folder problem?

http://social.technet.microsoft.com/Forums/en/winserverTS/thread/f29e9b5d-9207-4981-8a07-0f8b2120fd01

I'm afaid we're not using roaming profiles for this user so I dont think the above is relevant?
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Alan_WhiteCommented:
I know the following article says Vista but 2008 (without R2) is basically the same OS:  http://support.microsoft.com/kb/947242
discussystemsAuthor Commented:
Thanks for the suggestion.

I have tried the the method (http://support.microsoft.com/kb/947242 ) - deleting profile and relevent SID in reg but still experience the same problem.

Any more suggestions greatly appreciated
Mike ThomasConsultantCommented:
Unhide hidden files and folders and check to see if the "default user" profiles is present as it is this that is copied to a new profile for a user whenever a new users logs on if it is not present then you will not get a profile and the error you are getting.

If this is not present you can simply copy a default user profile from another machine.


discussystemsAuthor Commented:
Thanks.

C:\users\default
C:\users\default user

Are both in the directory however as with all the other profiles I cannot access them (padlock icon)
apache09Commented:
First this I would do is check network connectivity.
Verify the PC can log onto the Domain using any working account other than the users.

If you can verify the PC is logging onto the network...

This is usually as a result of the local user domain profile becomming corrupt.

Logonto the machine as an Admin.

Navigate to the usres profile and rename the users profile to OLDUSERNAME

Log Off as admin

Have the user log back on

This will create a new profile from the default user settings.

Have the user log back off.

Log back on as Admin

Find the OLDUSERNAME profile

Copy over any important to relevant files into the New Profile

Log off and have the user log back on.

All will be good. Other than just having to resetup a few minor user prefrences.
But hey, at leat they have a working profile and can work.....
discussystemsAuthor Commented:
The server can get onto the network.

The PC is a terminal server which has potentially 50 users
The user can login to the other 4 terminal servers fine.

I've done what you suggested (Although just a different way of doing what i'v;e already done) with no affect

Any more suggestions appreciated.

apache09Commented:
AH Okay.

SO this message that comes up.....
Is this a message that comes up after the user logs onto Terminal Server?

Or is this user using a Fat Client (Opposed to a Thin Client) and the messge comes up after logging onto the Fat Client, but not after logging onto terminal server.
 
If user is using fat client, would make sure that the user profile is Renamed on both the Fat Client and on the terminal server.

If that doesnt resolve it.

Have also seen some similar issue where a staff member was employed, they were setup on the domain as usernamefirstletteroflastname
They left the company, their account was removed from AD, then they came back.
Or another Staff member was setup that had same first name and same first letter of last name, giving them same user name as previous staff.
Recreating that account name and having the user log back on created some issues in Terminal Server.

Best way to fix it was mark the profile, inactive. and recreate a new one for them usernamefirsttwolettersoflastname.
Any email addresses that were setup with previous AD Account were just added as additional SMTP Addresses in their new ad profile

discussystemsAuthor Commented:
User uses RDP to log in first time around creates profile (outlook settings etc) user logs off...
User uses RDP next time round and it reports there is something wrong with his profile in the event logs (as above) and then loads the temp profile.

All thin client, the user does use a Fat client but not logging into the terminal server directly (i would class RDP as thin client?)

I'm not keen on re-creating the user account with the possible knock on affects but if that is the only way of doing it... maybe worth ago...

Although this does happen for a number of users - who dont seem to have any relation.

Spike99On-Site IT TechnicianCommented:
You said you deleted the .BAK SID profile key for the users. Where was that? Was that in this key?:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

We've had lots of issues with roaming profiles on a 2008 cluster of servers.  2008 is a lot less forgiving of profile errors than 2003 so you have to work harder to clear out a bad profile.  And, the only solution I  found for that is to completely clear the local user profile (you can leave the roaming profile alone).

Check these:
1.  Go into System Properties and remove the user's local profile from the list if it appears there (it might not).  If it appears as Type=Roaming, Status=Temporary, you will definitely need to remove it.
2.  After removing the profile, delete any registry key that remains for that user's SID, such as:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID
and
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID.bak

3.  Remove any folders for that remain for that user in C:\Users.  If you don't see any with their name, check to be sure no TEMP folders belong to them (C:\Users\TEMP, for example).  Check permissions of all TEMP folders in the Users directory to see which ones belongs to the user in question and then delete any you find.

I think the problem may be resolved for those users if you can just make sure all local profile folders and registry entries are removed before they log on again.

FYI: you can look up a user's name from the SID or vice versa using LkUpUserInfo.exe from this page:
http://www.codeproject.com/KB/cpp/lkupuserinfo.aspx

You can also confirm you have the correct SID in the ProfileList key by checking permisisons on the key: only the user and administrators will have rights to their key.

Alicia

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
discussystemsAuthor Commented:
You said you deleted the .BAK SID profile key for the users. Where was that? Was that in this key?:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

I deleted the backup sid from regedit - just checked and there are no .bak keys relating to this user in there.


Check these:
1.  Go into System Properties and remove the user's local profile from the list if it appears there (it might not).  If it appears as Type=Roaming, Status=Temporary, you will definitely need to remove it.
Deleted a 14mb profile


2.  After removing the profile, delete any registry key that remains for that user's SID, such as:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID
and
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID.bak

No profiles in here relating to him - however while looking through the keys one folder i couldn't open so i have deleted this just in case it was his and had been corrupted.


3.  Remove any folders for that remain for that user in C:\Users.  If you don't see any with their name, check to be sure no TEMP folders belong to them (C:\Users\TEMP, for example).  Check permissions of all TEMP folders in the Users directory to see which ones belongs to the user in question and then delete any you find.

No folders relating to this user in here.


I think the problem may be resolved for those users if you can just make sure all local profile folders and registry entries are removed before they log on again.

FYI: you can look up a user's name from the SID or vice versa using LkUpUserInfo.exe from this page:
http://www.codeproject.com/KB/cpp/lkupuserinfo.aspx

You can also confirm you have the correct SID in the ProfileList key by checking permisisons on the key: only the user and administrators will have rights to their key.

Alicia

I think... that might have fixed it! - it seems at the moment to work.

Will update in a couple of days once the user has had a full test.....

fingers crossed.

Thanks Alicia.
Spike99On-Site IT TechnicianCommented:
No problem!  We had our own struggles with roaming profile issues on 2008 servers, so I know only too well how stubborn they can be.

I'll have my fingers crossed, too.

Alicia
discussystemsAuthor Commented:
Think that's fixed it - no probs since.

Always the simple things you forget.
Spike99On-Site IT TechnicianCommented:
Excellent!  I was glad I could help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.