PowerShell script for deleting temporary user profiles

intro fslogix error temp prof

TTemporary user profiles are unsightly and can also cause Microsoft FSLogix can quickly become a problem. The user will then see the following message: The user profile could not be attached and further down, it says: 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's registry. I created a PowerShell script to clean up these BAK entries.

The script checks for existing „BAK“ entries, deletes them, and also deletes the referenced GUID entries for the profile. If a local profile for the user also exists, that is deleted as well.

FSLogix Error

Full script on GitHub

Clear-bak-profiles_en.ps1
https://github.com/Koetzing/Powershell-Scripts/blob/main/clear-bak-profiles_de.ps1 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top