posted on August 31st 2015, at 12:10
by lunarg
To reclaim space in virtual environments and thin provisioned storage facilities, SDelete from SysInternals is probably the most used tool on Windows to clear out unused space of a volume, allowing the SAN to release these data blocks back to the storage pool.

But while SDelete is robust, it has a few (minor) limitations:

It cannot handle mount points, only logical drives (i.e. volumes mounted on a logical drive letter).

It is rather slow on very large file systems.

I found an alternative online in the form of a Powershell script at this thread, written by David Tan, who in turn based it on a script found here.

The script creates an empty ("zeroed") 1 GB file and copies that f  ...
 
last updated on August 31st 2015, at 12:10 by lunarg

Written By: David Tan

V1.0 29/01/2014 DavidtFast Space reclaimer

Note: Concept and code parts taken from http://blog.whatsupduck.net/2012/03/powershell-alternative-to-sdelete.html

Uses powershell method to generate large (1GB) file containing 0. Re-copies this file until <1GB free.

/media/mime/48/txt.png
NimbleFastReclaim.ps1
Text file
2.45 KB
 
 
« December 2024»
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    
 
Links
 
Quote
« Most people tend to avoid true conflict. Ironically this breeds more conflict. »