Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
shrink desired=500 minimum=250The Diskpart shrink command reduces the size of the selected volume by the amount you specify. This guide lists the documented syntax and parameters for shrink; check Microsoft Learn for version, role and execution-context requirements.
shrink [desired=<n>] [minimum=<n>] [nowait] [noerr]
shrink querymax [noerr]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
shrink desired=500 minimum=250Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
shrink querymax| Option / clause | Description |
|---|---|
desired=<n> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
minimum=<n> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
querymax | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
nowait | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
noerr | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
<n> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.