Repair-VirtualDiskRepair-VirtualDisk

語法Syntax

Repair-VirtualDisk [-CimSession <Object>] [-WhatIf] [-PassThru] [-Name <Object>] [-InputObject <Object>]
 [-Confirm] [-UniqueId <Object>] [-ThrottleLimit <Object>] [-AsJob] [[-FriendlyName] <Object>]

## Parameters

### -AsJob


```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CimSession-CimSession

Type: Object
Parameter Sets: (All)
Aliases: Session

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm-Confirm

在執行 Cmdlet 前提示您確認。Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FriendlyName-FriendlyName

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputObject-InputObject

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name-Name

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru-PassThru

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ThrottleLimit-ThrottleLimit

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UniqueId-UniqueId

Type: Object
Parameter Sets: (All)
Aliases: Id

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf-WhatIf

顯示執行 Cmdlet 後會發生的情況。Shows what would happen if the cmdlet runs. Cmdlet 並不會執行。The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

輸入Inputs

System.String[]System.String[]

Microsoft.Management.Infrastructure.CimInstance[]Microsoft.Management.Infrastructure.CimInstance[]

輸出Outputs

Microsoft.Management.Infrastructure.CimInstanceMicrosoft.Management.Infrastructure.CimInstance

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDiskMicrosoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

後續步驟Next steps

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.