Repair-SCStorageFileShare

Repairs a storage file share.

Syntax

Repair-SCStorageFileShare
      -VMHost <Host>
      -StorageFileShare <StorageFileShare>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]
Repair-SCStorageFileShare
      -VMHostCluster <HostCluster>
      -StorageFileShare <StorageFileShare>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]
Repair-SCStorageFileShare
      -LibraryServer <LibraryServer>
      -StorageFileShare <StorageFileShare>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]

Description

The Repair-SCStorageFileShare cmdlet repairs a specified storage file share.

Examples

Example 1: Repair a storage file share by providing a virtual machine host

PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> Repair-SCStorageFileShare -StorageFileShare $FileShare -VMHost $VMHost

The first command gets the storage file share object named FileShare01 and stores the object in the $FileShare variable.

The second command repairs FileShare01.

Required Parameters

-LibraryServer

Specifies a Virtual Machine Manager (VMM) library server object.

Type:LibraryServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageFileShare

Specifies a storage file share.

Type:StorageFileShare
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHost

Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.

For more information about each type of host, see the Add-SCVMHost cmdlet.

Type:Host
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHostCluster

Specifies a VMM host cluster object.

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

Optional Parameters

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

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