Script Library

Boost your management, troubleshoot, and remediation capabilities with scripts created by experts in the IT community.

<< Back to Script Library

Tag: disk

(7 Scripts)
Configures the Optimize Drives service so that FSLogix Disk Compaction will function.

This SBA can be executed manually or used with a trigger pack to automate healing of this misconfiguration. More information is available here:
Version: 2.2.5  |   Created: 2023-04-13  |   Modified: 2023-04-21  |   Creator: Trentent Tye  |   Downloads: 52
Show FSLogix currently mounted volume details and cross reference to FSLogix session information in the registry.
Version: 2.2.25  |   Created: 2022-08-17  |   Modified: 2022-12-04  |   Creator: Guy Leech  |   Downloads: 405
Change the type of disk assigned to the Azure VM. Valid disk types are:


Note that costs of this VM once updated could be very different.
Version: 2.3.5  |   Created: 2022-01-19  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 27
This script will change the resource allocation of a given vSphere VM. By default, the allocation is increased one 'SharesLevel' for CPU, HDD, Memory or all three.
If the SharesLevel for a resource is 'Custom' this will not be changed. ALL hard disks will be set to a new SharesLevel based on the current level of the FIRST disk. Example, script is set to Increase level for All resources:
CPU SharesLevel 'Normal' ---> CPU ShareLevel 'High'
Memory SharesLevel 'Custom' ---> Memory SharesLevel 'Custom'
FIRST HDD SharesLevel 'Low', SECOND HDD SharesLevel 'Normal' ---> ALL HDD SharesLevel 'Normal'
Version: 1.0.2  |   Created: 2019-03-19  |   Modified: 2019-03-19  |   Creator: Ton de Vreede  |   Downloads: 32
Run WinDirStat ( to analyze the usage of a drive.
If executed for a Logical drive that will be used.
If executed on a computer or session will be run for ALL Drives on that computer
Version: 1.10.35  |   Created: 2019-03-13  |   Modified: 2019-03-29  |   Creator: mc  |   Downloads: 505
For any file on the target computer for which the user provides the full path, displays a list of processes with open handles to the file. This is useful for determining which process is locking the file, preventing its deletion or editing in another program.
The action makes use of Sysinternals handle.exe, which is downloaded, extracted into a temporary location and deleted after completion.
Version: 1.3.3  |   Created: 2018-12-11  |   Modified: 2019-04-03  |   Creator: Guy Leech  |   Downloads: 157
This script is used to clean up a disk by deleting the content of directories which are known to accumulate large amounts of useless data. By default, the following folders are emptied of files (if they exist):
%systemroot%Downloaded Program Files
%systemdrive%MSOCacheAll Users
%allusersprofile%MicrosoftWindows DefenderDefinition Updates
%allusersprofile%MicrosoftWindows DefenderScans

Extra folders to be cleaned and specific files to be removed can be added when running the script.
Option: Run CLEANMGR with all options set, and delete Volume Shadow Copies
Option: Run DISM if CLEANMGR was supposed to run but is not available
Note: The CLEANMGR option and DISM fallback remove installers of updates and old Windows versions. If either of these has been run, IT IS NOT POSSIBLE TO UNINSTALL UPDATES OR REVERT TO AN OLDER WINDOWS BUILD!
Version: 2.6.34  |   Created: 2018-12-02  |   Modified: 2020-12-09  |   Creator: Ton de Vreede  |   Downloads: 1274