![ps1 eboot compact shrink ps1 eboot compact shrink](https://2.bp.blogspot.com/-jBK26ME2-co/WelIZ13xdnI/AAAAAAAAAk8/DmpE9FMe7yoo6fEG7CuQMWn2lzaKije4gCLcBGAs/s280/DonPachi%2BSLPS-00548%2Biso%2Beboot%2Bpbp.jpg)
The script will output a csv in the following format: The script can optionally also not run on disks smaller than (x)GB (configurable) as it’s possible that even a large % of whitespace in small disks won’t result in a large capacity reclamation, but even shrinking a small amount of capacity will cause storage load. Deletion of disks is not enabled by default.īy default the script will not run on any disk with less than 5% whitespace inside (configurable). You can delete disks which have not been accessed in x number of days previously (configurable). With the intention of reducing the storage load to the minimum possible, you can configure the script to only shrink the disks where you will see the most benefit. I advise running the script out of hours if possible, to avoid impacting other users on the storage. The storage load occurs on the location where the disks are stored not on the machine where the script is run from. The activity is more in file system metadata operations than pure IOPS, so make sure your storage controllers can handle the load.
![ps1 eboot compact shrink ps1 eboot compact shrink](https://i.ytimg.com/vi/PiCesmzAB5s/maxresdefault.jpg)
Reducing the size of a virtual hard disk is a storage intensive activity. You could also use the number of threads to throttle the load on your storage. It is not advised to run more than 2x the threads of your available cores on your machine. This tool is multi-threaded and will take advantage of multiple CPU cores on the machine from which you run the script. It needs to be run as administrator due to the requirement for mounting disks to the OS where the script is run. Powershell version 5.x and 7 and above are supported for this script. It does not need the Hyper-V role installed. This script can be run from any machine in your environment it does not need to be run from a file server hosting the disks. This Script is designed to work at Enterprise scale to reduce the size of thousands of disks in the shortest time possible. This means that Enterprises can wish to reclaim whitespace inside the disks to keep cost down if the storage is cloud based, or make sure they don’t exceed capacity limits if storage is on-premises. This script does not support reducing the size of a Fixed file format.ĭynamically Expanding disks do not natively shrink when the volume of data within them reduces, they stay at the 'High water mark' of historical data volume within them.
![ps1 eboot compact shrink ps1 eboot compact shrink](https://packaging-equipment-sales.com/_img/Compact_L-Bar_Shrink_Wrap_Infeed_Conveyor.png)
By default, the disks created will be in Dynamically Expanding format rather than Fixed format. Shrinks FSLogix Profile and O365 dynamically expanding disk(s).DESCRIPTIONįSLogix profile and O365 virtual hard disks are in the vhd or vhdx file format.