Freedisk command in Windows
Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
The freedisk command checks to see if the amount of designated disk space is available before deciding whether to continue the installation process.
Syntax of freedisk command
freedisk [/s [/u [] [/p []]]] [/d ] []
Parameters
Parameter Description / s Specifies the name or IP address of the remote computer (do not use a backslash). The default is the local computer. This parameter applies to all files and directories specified in the command. / u [] Run the script with the rights of the specified user account. The default is system permissions. / p [] Specifies the password of the user account specified in the / u parameter. / d Specify the drive on which you want to find how much free space is available. You must specify for a remote computer. Check the amount of disk space available. You can specify in bytes, KB, MB, GB, TB, PB, EB, ZB or YB.Note
- Use the command line options / s, / u and / p are only available, when you use / s. You must use / p with / u to provide the user's password.
- To install unattended, you can use the freedisk command in the batch files installed to check the amount of available disk space before continuing with the installation.
- When you use the freedisk command in a batch file, it returns 0 if there is enough space and 1 if there is not enough space.
For example
To determine if there is at least 50 MB of free space available on drive C :, type:
freedisk 50mb
The output similar to the following will appear on the screen:
INFO: The specified 52,428,800 byte(s) of free space is available on current drive.
See more:
- Fondue command in Windows
- Findstr command in Windows
- The flattemp command in Windows
5 ★ | 1 Vote
You should read it
May be interested
- Ftype command in Windowsthe ftype command displays or modifies the file types used in file name extension links. if used without the assignment operator (=), the ftype command will display the current string of open commands for the specified file type.
- Forfiles command in Windowsthe forfiles command selects and executes a command on a file or set of files. this command is very useful for batch processing.
- The reset session command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- What is a dynamic IP address?dynamic ip addresses are ip addresses automatically assigned to each connection or node of the network, such as smartphones, desktops, wireless tablets or anything else.
- Rexec command in Windows(applies to: windows server 2003, windows server 2003 r2, windows server 2003 with sp1, windows server 2003 with sp2)
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.