Freedisk command in Windows
The freedisk command checks to see if the amount of designated disk space is available before deciding whether to continue the installation process.
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
Maybe you are interested
How to use the file search command on Windows, find saved files
Why is tldr command better than man command in Linux?
Should I use PowerShell or Command Prompt?
What to do when open command window here does not appear?
How to switch users on the Linux command line
How to fix Mac Homebrew error 'zsh: command not found: brew'