Temporary user profiles are unattractive and can also quickly become a problem with Microsoft FSLogix. The user then receives the message: The user profile failed to attach and further down can be read: Error Code 0x80090024, Message, The user's profile is a temporary profile
. This is caused by BAK entries for the user in the ProfileList in the server registry. I have created a Powershell script to clean up these BAK entries.
The script checks for existing "BAK" entries, deletes these and also the referenced GUID entries for the profile. If there is also a local profile for the user, this is also deleted.
Complete script on Github
Clear-bak-profiles_en.ps1
https://github.com/Koetzing/Powershell-Scripts/blob/main/clear-bak-profiles_en.ps1