Advertisement

Enable or Disable Reserved Storage with PowerShell in Windows 10

How to Enable or Disable Reserved Storage with PowerShell in Windows 10

Microsoft has silently added a couple of improvements to the Reserved Storage feature in Windows 10 version 2004. From now, changing the Registry is no longer required to enable or disable it, there are new DISM commands for that, and new PowerShell cmdlets.

Advertisеment

Starting in Windows 10 19H1, version 1903, Microsoft made a few changes to how Windows 10 manages disk space. Some disk space, reserved storage, is now used by updates, apps, temporary files, and system caches.

Storage Reserve Cli0

Windows 10 will reserve some disk space to ensure that critical OS functions always have access to disk space. If a user almost fills up his storage, several Windows and application scenarios become unreliable. For example, Windows Update may fail to download new update packages. Reserved storage solves this issue. It is enabled out of the box on devices that come with Windows 10  pre-installed or those where Windows 10 was clean installed.

Tip: Find Reserved Storage Size in Windows 10

As you may recall, you had to apply a Registry tweak prior to 20H1 builds. Starting in Windows 10 '20H1', version 2004, Microsoft has added three new DISM commands to enable or disable the Reserved Storage feature. Alternatively, you can use the following PowerShell commands

PowerShell Logo Banner

To Enable or Disable Reserved Storage with PowerShell in Windows 10,

  1. Open PowerShell as Administrator.
  2. Type Get-WindowsReservedStorageState to see if the Reserved Space feature is enabled or disabled.PowerShell Get Reserved Storage State
  3. Execute the following command to enable Reserved Storage: Set-WindowsReservedStorageState -State Enabled.
  4. Run the following command to disable Reserved Storage: Set-WindowsReservedStorageState -State Disabled.

You are done. The change will be applied instantly, no restart required.

Note: If Windows 10 is performing a servicing operation, e.g. it is installing an update, you won't be able to enable or disable the Reserved Storage feature. The operation will fail. You should try to execute the appropriate command later. You will see the following message:

PowerShell Reserved Storage Servicing

 

Note: The amount of reserved space will vary over time based on how you use your device. For example, temporary files that consume general free space today on your device may consume space from reserved storage in the future. Additionally, over the last several releases Microsoft reduced the size of Windows for most customers.

When enabled, reserved storage will instantly reserve its full allotment of disk space. However, on disk-space-constrained devices, enabling reserved storage will leave the user space and will only take the minimum—which is 2% of system volume capacity or 3GB of disk space, whichever is lower—to ensure that the device is functional and accessible to the user for further operations. Reserved storage will grow back to its original allocated size as space becomes available, such as when old Windows installations are removed or then Storage Sense cleanup tasks are conducted.

You can uninstall optional features and language packages to reduce the amount of space that Windows 10 will reserve for updates. Check out the post: Reduce Reserved Storage Size in Windows 10.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.