Get Free Disc Space
Reports total available disk space across all Windows drives.
Worklet Details
Why would you use the Get Free Disk Space Worklet?
By checking on disk space, you can see if you need to free up more space to optimize system performance and ensure that your end users have enough storage capacity for their needs.
How to evaluate disk space with this PowerShell Worklet
This Worklet will calculate the percentage of free disk on all drives on a Windows system.
In the remediation script, the user should specify the desired minimum amount of free space on a system before the Worklet will report it as non-compliant.
For example, if the $minimumFreeSpace variable is set to '15' when the remediation script is run, if the system has more than 15% of its drive capacity of free space, it will log the amount to the console and return that the device is compliant. Otherwise, if the remaining space is below 15%, the script will return that the device is non-compliant.
By default, this value is set to 10%.
This Worklet supports Windows 7 and above and Powershell 3.0 and above.
Why is it important to check free disk space?
You may need to check a device's free disk space for a number of reasons:
System Updates and Upgrades
Operating system updates and software upgrades often require a certain amount of free disk space to install correctly. If you don't have sufficient space, you may encounter errors or be unable to install updates.
Improved System Performance
When a computer's hard disk is filled with unnecessary files and clutter, it can slow down system performance. By freeing up disk space, you allow the operating system to function more efficiently, resulting in faster response times and smoother overall performance.
Storage Capacity
Disk space is finite, and if it becomes full, end users won't be able to save new files or install additional software. By regularly freeing up disk space, you ensure that you have enough storage capacity for your ongoing needs.
Efficient Backup and Restore
Backing up files is essential for data security. When disk space is limited, it becomes challenging to create backups and restore them if needed. By freeing up disk space, you ensure that there's enough room for creating backups and safeguarding your important data.
TRY WORKLETS TODAY FOR FREE
Start now and begin controlling your endpoints within 15 minutes.
No credit card required. By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
What's a Worklet?
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.
AUTOMOX + WORKLETS™
Supercharge your endpoint management
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy