After deleting a user profile completely, sometimes we get this event when creating a fresh profile where it stops creating a new profile on the server.
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: Date
Event ID: 1511
Task Category: None
Level: Warning
Keywords: Classic
User: User
Computer: Computer
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.
Step1:
In the Run menu type Regedit and hit the Enter key.
Open Registry editor.
Go to this location.
Take a Registry Backup – Recommended – Right Click Export And Save it.
You can find GUIDs with .bak Extension where you can remove those:
HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\ProfileList
Log off and log back in.
User profile should be created without any issues.
For testing purposes, the corrupt profile can be renamed to [sid].old easily with the following PowerShell script:
$objUser = New-Object System.Security.Principal.NTAccount(Read-Host -Prompt “Enter Username”)
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
#$strSID.Value
Rename-Item -Path “HKLM:\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\$($strSID.Value)” -NewName “$($strSID.Value).old”