NAME
Disable-StorageHighAvailability
SYNOPSIS
Disables a Storage resource.SYNTAX
Disable-StorageHighAvailability [-DiskNumber]
[-CimSession ] [-PassThru] [-ThrottleLimit ] [ ] Disable-StorageHighAvailability [-CimSession
] [-PassThru] [-ThrottleLimit ] -DiskUniqueId [ ] Disable-StorageHighAvailability [-CimSession
] [-PassThru] [-ThrottleLimit ] -DiskFriendlyName
[ ] Disable-StorageHighAvailability [-CimSession
] [-PassThru] [-ThrottleLimit ] -DiskPath [ ] Disable-StorageHighAvailability [-CimSession
[] [-PassThru] [-ThrottleLimit ] ] DESCRIPTION
The Disable-StorageHighAvailability cmdlet configures a Storage resource to be in an unavailable or inactive state.
PARAMETERS
-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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false-DiskFriendlyName
Specifies an array of friendly names of disks. Required? true Position? named Default value noneAccept pipeline input? true(ByPropertyName)
Accept wildcard characters? false-DiskNumber
Specifies an array of disk numbers. Required? true Position? 1 Default value noneAccept pipeline input? true(ByPropertyName)
Accept wildcard characters? false-DiskPath
Specifies an array of disk paths. Required? true Position? named Default value noneAccept pipeline input? true(ByPropertyName)
Accept wildcard characters? false-DiskUniqueId
Specifies an array of unique IDs, as strings, of disks. Required? true Position? named Default value noneAccept pipeline input? true(ByPropertyName)
Accept wildcard characters? false-PassThru [
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] -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 PowerShellr 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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
OUTPUTS
Example 1: Disable a disk that is a resource in a failover cluster
This command uses the Get-Disk cmdlet to display the properties of disk number 9. The disk number is specific to
the cluster node that owns the cluster disk resource.PS C:\>Get-Disk -Number 9 | Format-Table -Property Number,IsHighlyAvailable,IsClustered,IsScaleOut
Number IsHighlyAvailable IsClustered IsScaleOut------ ----------------- ----------- ----------
9 True True True The next command removes disk number 9 its failover cluster. The final command repeats the first command to display the new status of the disk.PS C:\> Disable-StorageHighAvailability -DiskNumber 9
PS C:\> Get-Disk -Number 9 | Format-Table Number,IsHighlyAvailable,IsClustered,IsScaleOut
Number IsHighlyAvailable IsClustered IsScaleOut------ ----------------- ----------- ----------
9 False False False This example removes a disk from a failover cluster by using its disk number.RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=809341Get-Disk
Enable-StorageHighAvailability