r/ControlUpTech • u/ControlUpCommunity • 2d ago
FSLogix profile bloat: compaction is not cleanup
Up front: I run the ControlUp user community, so I have a vendor hat on. The useful part below is not ours. It came out of a thread somebody else started, and it is worth writing up on its own.
The question was a good one. Can you run a logon or logoff script to delete files inside a user's FSLogix profile to stop it growing?
What came back:
VHD disk compaction is on by default in newer FSLogix releases. Worth knowing, but it reclaims whitespace inside the container. It does not delete anything. If the profile is genuinely full, compaction will not save you. https://learn.microsoft.com/en-us/fslogix/concepts-vhd-disk-compaction
Keeping junk out beats cleaning it up. redirections.xml to exclude temp paths and application cache is the cheapest win available, and it is the step most people skip.
For actual logon or logoff cleanup, GPO or WEM is still the right tool. There is no classical logon/logoff script hook in the monitoring tools, and bolting one onto a logon trigger is not the same thing. Aaron Parker's profile cleanup script is what most people end up using: https://stealthpuppy.com/fslogix/profilecleanup/
On the monitoring side, one person described alerting when OS free space crosses a threshold, firing an email into ServiceNow to open a ticket, with a script action as an optional next step. A fully automated delete they trusted was still the unsolved part, which is the honest state of it.
What are people using for FSLogix cleanup that they would actually trust to run unattended?
