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

  1. 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.
  2. 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.
  3. 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:

  1. Fondue command in Windows
  2. Findstr command in Windows
  3. The flattemp command in Windows
5 ★ | 1 Vote

May be interested

  • Instructions for using Command PromptInstructions for using Command Prompt
    deep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
  • Rd command in WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • The sfc command in WindowsThe sfc command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
  • Reg command copy in WindowsReg command copy in Windows
    to copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
  • Fc command in WindowsFc command in Windows
    the fc command compares two files or a collection of files and displays the differences between them.
  • The echo command in WindowsThe echo command in Windows
    the echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
  • Xcopy command in WindowsXcopy command in Windows
    the xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
  • The cacls command in WindowsThe cacls command in Windows
    the cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.