Unregister-SCStorageFileShare
从 VM 主机、群集或库服务器取消注册存储文件共享。
语法
Unregister-SCStorageFileShare
[-StorageFileShare] <StorageFileShare>
-VMHost <Host>
[-RemovePermissionsFromShare]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Unregister-SCStorageFileShare
[-StorageFileShare] <StorageFileShare>
-LibraryServer <LibraryServer>
[-RemovePermissionsFromShare]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Unregister-SCStorageFileShare
[-StorageFileShare] <StorageFileShare>
-VMHostCluster <HostCluster>
[-RemovePermissionsFromShare]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Unregister-SCStorageFileShare cmdlet 从虚拟机主机、群集或库服务器取消注册存储文件共享。
示例
示例 1:从库服务器取消注册存储文件共享
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $LibServer = Get-SCLibraryServer -ComputerName "LibraryServer01.Contoso.com"
PS C:\> Unregister-SCStorageFileShare -StorageFileShare $FileShare -LibraryServer $LibServer
第一个命令获取名为 FileShare01 的存储文件共享对象,并将对象存储在$FileShare变量中。
第二个命令获取名为 LibraryServer01 的 VMM 库服务器对象,并将对象存储在$LibServer变量中。
最后一个命令从 LibraryServer01 注销 FileShare01。
参数
-JobGroup
为一系列命令指定标识符,这些命令在包含相同作业组标识符的最后一个命令之前作为集运行。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-RemovePermissionsFromShare
指示从文件共享中删除权限。
Type: | SwitchParameter |
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: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |