When a profile is not deleted correctly from a computer, the user(s) may have difficulties logging in correctly. Most of the time, user(s) are logged in with temporary profiles. Here is a way to fix this via registry.
Open the registry by launching regedit.exe from ‘run’.
WARNING!!! Improper use of the registry may cause damage to your windows.
1. Expand HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
2. Click on each of the profiles starting with S-1-5-21 and delete all that are affected (hint: Look at the ProfileImagePath, if it says the user)
1. Download the package from the link and extract it in ‘C:\windows\system32’ folder
2. Run this command on elevated rights, this will add the package under ‘Programs and Features’ dism /online /add-package /packagepath:Microsoft-Windows-VdsInterop-Package~31bf3856ad364e35~amd64~~6.2.9200.16384.cab /packagepath:Microsoft-Windows-VdsInterop-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384.cab /packagepath:Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~~6.2.9200.16384.cab /packagepath:Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384.cab /packagepath:Microsoft-Windows-Dedup-Package~31bf3856ad364e35~amd64~~6.2.9200.16384.cab /packagepath:Microsoft-Windows-Dedup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384.cab dism /online /enable-feature /featurename:Dedup-Core /all
3. Next step is to enable Deduplication on a volume, by running an elevated Powershell Enable-DedupVolume <Drive Letter>
4. To return a list of volumes that have been enabled for data deduplication Get-dedupvolume | format-list
5. To start a dedup job Start-DedubJob -Volume <Drive Letter> -Type Optimization
6. You can query the progress of the job on the volume by using the ‘Get-DedupJob’ cmdlet
7. To check the status of deduplication, run the cmdlet ‘Update-DedupStatus <volume name>’