Managing reserved storage in Windows 10 environments
Published Apr 09 2020 04:39 PM 58.3K Views
Microsoft

To help you facilitate a “hands free” Windows 10 update experience for your users, Microsoft introduced a feature called reserved storage with Windows 10, version 1903. Enabled by default on newly manufactured Windows 10 PCs and clean installations of Windows 10, reserved storage is designed to increase the likelihood that Windows 10 feature updates can be successfully downloaded and installed without the user having to free up disk space. For PCs that connect directly to Windows Update, reserved storage works out of the box. However, if you manage and upgrade Windows devices using a management solution including Windows Server Update Services (WSUS) or Configuration Manager, reserved storage is not automatically accessible during device imaging or during an in-place upgrade.

In this blog, we’ll explore the available controls that make reserved storage accessible for IT administrators and endpoint management independent software vendors (ISVs) without requiring a clean install of the operating system (OS).

Managing reserved storage in a managed environment

As mentioned, for IT-managed devices not connected directly to Windows Update, reserved storage is not automatically available. In these cases, management solutions can access reserved storage by disabling it prior to applying an update, and then re-enabling it after the update completes. Disabling reserved storage tells the OS to let go of the space so that is it is available for the management solution to use; enabling reserved storage then tells the OS to reserve the space for its operations, including performing updates.

If you're an ISV, new controls are available that integrate within your management software to gain access to reserved storage. If you're an IT administrator using management software that is not aware of reserved storage, these same controls can be used before and after an update operation with modifications. For example, reserved storage would need to be disabled right before applying an update, and then re-enabled after successful completion of the update.

Reserved storage controls

With the upcoming release of Windows 10, version 2004, we’re introducing a new set of commands to help manage reserved storage. These commands are available via the Deployment Image Servicing and Management (DISM) command-line tool, DISM PowerShell cmdlets, and the DISM API. With these commands, reserved storage can be used on devices that were not shipped with Windows 10, version 1903 (and above). Once reserved storage is enabled or disabled via these commands, that state is preserved across the OS upgrade. In the examples below, we query the current state of reserved storage on a running Windows device, enable and disable reserved storage, and validate the current allocation using the Storage Sense UI. An elevated command prompt is required to run these DISM commands.

Querying reserved storage state

To find out whether your existing, installed version of Windows has reserved storage enabled, the following commands can be used to query its state:

 

 

DISM /Online /Get-ReservedStorageState

 

 

get-reservedstoragestate.png
Sample result from DISM /Online /Get-ReservedStorageState

Additionally, you can use the Windows PowerShell command Get-WindowsReservedStorageState and DismGetReservedStorageState DISM API to get the state of reserved storage on a device running Windows 10, version 1903 or later.

Enabling and disabling reserved storage state

To enable reserved storage on a device running Windows 10, version 1903 or later, you can run the following command:

 

 

DISM /Online /Set-ReservedStorageState /State:Enabled

 

 

reservedstoragestate_enabled.png
Sample result from DISM /Online /Set-ReservedStorageState /State:Enabled.

You can also use the Windows PowerShell command Set-WindowsReservedStorageState -State Enabled and DismSetReservedStorageState with DISM_RESERVED_STORAGE_ENABLED DISM API to enable reserved storage on the device.

To disable reserved storage on a device running Windows 10, version 1903 or later, you can run the following command:

 

 

Dism /Online /Set-ReservedStorageState /State:Disabled

 

 

reservedstoragestate_disabled.png
Sample result from DISM /Online /Set-ReservedStorageState /State:Disabled.

Additionally, you can use the Windows PowerShell command Set-WindowsReservedStorageState -State Disabled and DismSetReservedStorageState with DISM_RESERVED_STORAGE_DISABLED API to serve a similar purpose.

How much disk space is allocated for reserved storage?

Reserved storage starts by reserving about 7 GB of hard disk space and the amount of space reserved will vary over time based on the device. The reserved space can be reduced by removing unused optional features and languages, such as:

  • Installed optional features: Many optional features are available for Windows. These may be pre-installed, acquired on demand by the system, or installed manually by you. When an optional feature is installed, Windows will increase the amount of reserved storage to ensure there is space to maintain the feature on your device when updates are installed. You can see which features are installed on your device by going to Settings > Apps > Apps & features > Manage optional features. You can reduce the amount of space required for reserved storage on your device by uninstalling optional features you are not using.
  • Installed languages: Windows is localized into many languages. Although most organizations only use one language at a time, some users may switch between two or more languages. When additional languages are installed, Windows will increase the amount of reserved storage to ensure there is space to maintain these languages when updates are installed. You can see which languages are installed on your device by going to Settings > Time & Language > Language. You can reduce the amount of space required for reserved storage on your device by uninstalling languages you are not using.

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.

Once reserved storage is enabled, the Storage Sense user interface will show the reserved storage size. To view this information, select Start, search for “Storage settings” and select Show more categories. Then select System reserved and look at the “Reserved storage” size.

StorageSense_System-reserved.pngSystem & reserved settings in Windows 10

Learn more

To learn more about Windows 10 deployment strategies in management environments, refer to Update Windows 10 in enterprise deployments. To ensure that language packs (LPs) and Features on Demand (FODs) are retained when updating devices with to the latest Windows 10 feature update, see Language pack acquisition and retention for enterprise devices. To add multilingual support to Windows, refer to Add multilingual support to a Windows Distribution.

 

6 Comments
Iron Contributor

Hi @Steve_DiAcetis ,

 

Thanks for the announcement. Could you please clarify a couple of points?

 

> With the upcoming release of Windows 10, version 2004, we’re introducing a new set of commands to help manage reserved storage

> To enable reserved storage on a device running Windows 10, version 1903 or later,

If this management feature comes in 20H1, how is it supposed to work in 1903 and 1909? Are you going to release a Windows Update to backport the feature to older Windows versions?

 

>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

Disk-space-constrained is an interesting word (albeit still much shorter than Get-WindowsReservedStorageState:)

1. Can you define the term clearly please? What's the actual threshold in terms of GB or the percentage of free disk space that makes a device disk-space-constrained?

2. Does this behavior apply to 1903+ or 2004+ only?

 

Thanks,

Vadim

Silver Contributor

I get errors running this commands in elevated CMD/PS:

 

PS C:\WINDOWS\system32> DISM /Online /Get-ReservedStorageState

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 10.0.18362.752


Error: 87

The get-reservedstoragestate option is unknown.
For more information, refer to the help by running DISM.exe /?.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
PS C:\WINDOWS\system32> Get-WindowsReservedStorageState
Get-WindowsReservedStorageState : The term 'Get-WindowsReservedStorageState' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ Get-WindowsReservedStorageState
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-WindowsReservedStorageState:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\WINDOWS\system32>

 

I'm on 1903 with latest updates.

Silver Contributor

Ok, first command will only run on 2004. But what do i need to import/install for the second command (PowerShell) on 1903?

Microsoft

Hi @wroot and @Vadim Sterkin :

 

These new commands are only available with Windows 10, version 2004. We are looking at bringing them to earlier releases, but I don't have a time frame to share right now. 

 

Regarding the statement around disk-space-constrained devices, I need to fix that sentence to make it clearer. When we enable the reserve, we will attempt to reserve what we need (based on optional features, installed languages, etc.). However, we may need to reserved less so that the user is left with either 2% or 3GB (whichever is smaller). So disk-space-constrained means any device where we are unable to reserved what we need and need to reserved less. 

 

Thanks,

Steve

Brass Contributor

From  December 2019, onwards i configured the storage sense by group policy editor.  I recommend normal home users should use the storage sense option. here is the screenshot of registry key.

 

Capture2.JPG

Copper Contributor

I have the same issue 87. Bitlocker was already deactivated.

I want to remove reserved storage (Windows 10) because I need more free space on drive c

What can you recommend to me?Frame 3.png

Co-Authors
Version history
Last update:
‎Feb 02 2023 11:55 AM
Updated by: