PowerShell Logo Small

Repair-VirtualDisk



This is the built-in help made by Microsoft for the command 'Repair-VirtualDisk', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Performs repairs on a virtual disk that is unhealthy.

SYNTAX


Repair-VirtualDisk [-FriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Repair-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Repair-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -Name <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Repair-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -UniqueId <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Repair-VirtualDisk cmdlet performs repairs on a virtual disk that is unhealthy. The actual tasks performed are vendor-specific based on implementation in a Storage
Management provider.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307023
Where-Object
Connect-VirtualDisk
Disconnect-VirtualDisk
Get-VirtualDisk
Hide-VirtualDisk
New-VirtualDisk
Remove-VirtualDisk
Resize-VirtualDisk
Set-VirtualDisk
Show-VirtualDisk

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Repair-VirtualDisk -FriendlyName Space05



This example repairs the virtual disk named Space05 which is currently unhealthy.




EXAMPLE 2

PS C:\>Get-VirtualDisk | Where-Object –FilterScript {$_.HealthStatus -Eq "Unhealthy"} | Repair-VirtualDisk



This example gets all of the unhealthy VirtualDisk objects, and runs repairs on all of them serially.