< Back

Disable-StorageMaintenanceMode

Wed Jan 30, 2019 6:01 pm

NAME Disable-StorageMaintenanceMode



SYNOPSIS

Disables storage maintenance mode on a fault domain.





SYNTAX

Disable-StorageMaintenanceMode [-CimSession <CimSession>] [-Manufacturer <String>] [-Model <String>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-CimSession [<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 [<String>]

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 [<String>]

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



<CommonParameters>

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-PhysicalDiskStorageNodeView