Updated: April 17, 2012
Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8
Checks to see if the specified amount of disk space is available before continuing with an installation process.
For examples of how this command can be used, see Examples.
freedisk [/s <Computer> [/u [<Domain>\]<User> [/p [<Password>]]]] [/d <Drive>] [<Value>]
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. This parameter applies to all files and folders specified in the command.
Runs the script with the permissions of the specified user account. The default is system permissions.
Specifies the password of the user account that is specified in /u.
Specifies the drive for which you want to find out the availability of free space. You must specify <Drive>for a remote computer.
Checks for a specific amount of free disk space. You can specify <Value>in bytes, KB, MB, GB, TB, PB, EB, ZB or YB.
Using the /s, /u, and /p command-line options are available only when you use /s. You must use /p with /uto provide the user’s password.
For unattended installations, you can use freedisk in installation batch files to check for the prerequisite amount free space before continuing with the installation.
When you use freedisk in a batch file, it returns a 0 if there is enough space and a 1 if there is not enough space.