Windows PowerShell command on Get-command Disable-StorageMaintenanceMode
MyWebUniversity

Windows PowerShell command on Get-command Disable-StorageMaintenanceMode

NAME

Disable-StorageMaintenanceMode

SYNOPSIS

Disables storage maintenance mode on a fault domain.

SYNTAX

Disable-StorageMaintenanceMode [-CimSession ] [-Manufacturer ] [-Model ]

[]

DESCRIPTION

The Disable-StorageMaintenanceMode cmdlet disables storage maintenance mode on a fault domain, which includes SSU,

StorageEnclosure, and PhysicalDisk.

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

-Manufacturer []

Specifies the manufacturer of a device. This cmdlet matches manufacturer information of physical disk devices, and disables maintenance mode on those devices. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Model []

Specifies the model of a physical disk device that this cmdlet removes from maintenance mode. If multiple devices fit a model string, this cmdlet removes those devices from maintenance mode. 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

MSFT_StorageFaultDomain You can pipe a fault domain object, PhysicalDisk, Enclosure, or SSU to this cmdlet.

OUTPUTS

Example 1: Disable maintenance mode on a physical disk

PS C:\>Get-PhysicalDisk -FriendlyName "Disk22" | Disable-StorageMaintenanceMode

This command gets a physical disk by using the Get-PhysicalDisk cmdlet, and then passes that object to the current

cmdlet. The command disables storage maintenance mode on the disk named Disk22.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=809342

Enable-StorageMaintenanceMode

Get-PhysicalDisk



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™