Updates the cache of the service for a particular provider and associated child objects.
Windows Server · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft Storage reference: Updates the cache of the service for a particular provider and associated child objects. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Update-StorageProviderCache. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / Storage · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-DiscoveryLevel
Defines the level (or depth) of discovery that should be performed. Increasing levels are cumulative; the storage providers will discover objects starting from Level0 and continuing to the highest level specified. Acceptable values are: Full, which discovers all objects on all accessible storage providers. This is the same as a Level3 discovery. Level0, which discovers storage provider and storage subsystem objects. Level1, which performs a Level0 discovery and then discovers storage pools, resiliency settings, target ports, target portals, and initiator identifiers. Level2, which performs a Level1 discovery and then discovers virtual disk and masking set objects. Level3, which performs a Level2 discovery and then discovers physical disk objects. This is the same as a Full discovery. All storage providers perform a Level0 or higher level discovery when loaded by Windows.
-InputObject (required)
Specifies the input object that is used in a pipeline command.
-Manufacturer
Specifies the storage provider cache to update by manufacturer name. Enter a manufacturer string, or use wildcard characters to enter a pattern.
-Name
Specifies the name of the storage provider cache to update.
-PassThru
Specifies that the cmdlet should output an object representing the storage provider it updated. By default, this cmdlet does not generate any output.
-RootObject
Specifies a reference to the object from which you want to begin discovering associated objects. When the DiscoveryLevel parameter is not specified, well-defined actions will be taken depending on the type of object reference specified: StorageSubsystem: All associated objects will be discovered. StoragePool: The pool, along with any associated resiliency settings, virtual disks, and physical disks will be discovered. MaskingSet: The masking set, along with any associated target ports, initiator identifiers, and virtual disks will be discovered. For all other objects, only the specified object will be discovered or refreshed.
-StorageSubSystem
Updates all storage subsystems managed by the storage provider associated with the StorageSubsystem object you specify. Enter a StorageSubsytem CIM object, which is exposed by the Get-StorageSubSystem cmdlet.
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-URI
Specifies the URI of the storage provider whose cache should be updated.
-UniqueId
Specifies the ID of the storage provider cache to update. Type one or more IDs, with each ID enclosed in quotes, and multiple IDs separated by commas. The ID persists through restarts.
Prerequisites
Windows with the Storage module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
Examples
Example 1: Perform a Full update of all objects
Update-StorageProviderCache -DiscoveryLevel Full
This example performs a Full update of the storage provider cache on all accessible storage providers, rescanning all associated physical disks and reporting the state. This operation can be extremely time intensive in large or enterprise environments; instead use parameters to scope the update. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.