CmdID

CmdID / PowerShell / Cmdlets / Clear

Clear-SRMetadata

Removes unreferenced Storage Replica metadata. Windows Server PowerShell reference

From the Windows Server PowerShell reference 14 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

14 in the Windows Server PowerShell reference
-AllConfiguration, -ACIndicates that this cmdlet removes all unreferenced Storage Replica registry and cluster resource entries.
-AllLogs, -ALIndicates that this cmdlet removes all unreferenced Storage Replica logs from the hidden System Volume Information folders on all log drives.
-AllPartitions, -APIndicates that this cmdlet removes all unreferenced Storage Replica partition databases from all data drives.
-AsJobRuns the cmdlet as a background job.
-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.
-ComputerName, -CNSpecifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN).
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-Force, -FForces the command to run without asking for user confirmation.
-Logs, -LOIndicates that this cmdlet removes the unreferenced Storage Replica logs from the hidden System Volume Information folders on the log drive for the replication group specified by the *Name* parameter.
-Name, -NSpecifies the name of the replication group for which this cmdlet clears data.
-NoRestart, -NRIndicates that the computer does not restart after the cmdlet removes the entries.
-Partition, -PAIndicates that this cmdlet removes all unreferenced Storage Replica partition databases from the data drives associated with the replication group specified by *Name*.
-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.
-WhatIf, -wiShows what would happen if the cmdlet runs.