Script Library

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

<< Back to Script Library

Tag: disk

(4 Scripts)
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: 24
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: 254
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: 114
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: 480