Repair-SCStorageFileShare
修复存储文件共享。
语法
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>]
说明
Repair-SCStorageFileShare cmdlet 修复指定的存储文件共享。
示例
示例 1:通过提供虚拟机主机修复存储文件共享
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> Repair-SCStorageFileShare -StorageFileShare $FileShare -VMHost $VMHost
第一个命令获取名为 FileShare01 的存储文件共享对象,并将对象存储在$FileShare变量中。
第二个命令修复 FileShare01。
参数
-JobVariable
指定跟踪作业进度,并将其存储在此参数命名的变量中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LibraryServer
指定 Virtual Machine Manager (VMM) 库服务器对象。
Type: | LibraryServer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileShare
指定存储文件共享。
Type: | StorageFileShare |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
指定一个虚拟主机对象。 VMM 支持 Hyper-V 主机、VMware ESX 主机和 Citrix XenServer 主机。
有关每种主机类型的详细信息,请参阅 Add-SCVMHost cmdlet。
Type: | Host |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostCluster
指定 VMM 主机群集对象。
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |