Get Alerts for Low UPD and FSLogix disk space

One of the hurdles of UPDs and FSLogix is that they cause issues if they run out of space, and they don't alert users when they are out of space. In some cases you will waste time troubleshooting when you could have resolved it in a minute by just cleaning up the disk.

I created the script below to address this issue. You can run it against your RDS servers and gateway, and you will not need to modify anything beyond the SMTP settings, thresholds, and exclusions.

The script will do the following:
  • Exit if it is not run on a server (you can comment this out if you use UPDs on Desktops)
  • Query all collections on the RDG and scan all UPD paths
    • *Must be run on the Gateway for this to work
  • Query FSL Profile and ODFC paths
    • *Must be run on computers with FSL enabled
  • If low space disks are found the script will send you an email with a table of all the paths
  • If nothing is found the script will exit.
Known limitations:
  • The script might report false positives/negatives if you modified your max UPD/FSL size after a disk was created. This is because the script queries the currently configured max size, not the actual possible max size of the VHDX. 
https://github.com/andy2002a/PowerShell/blob/master/RDS/Get-LowDiskSpaceProfileContainer.ps1

Comments

Popular posts from this blog

FSLogix Troubleshooting guide

Removing Application UAC Requirements with Shims

Best Practices for Deploying User Profile Disks