Remove-SCSPFVMRoleGalleryItem
从库中删除项。
语法
Remove-SCSPFVMRoleGalleryItem
[-VMRoleGalleryItem] <VMRoleGalleryItem[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-SCSPFVMRoleGalleryItem
-Name <String>
-Version <String>
-Publisher <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Remove-SCSPFVMRoleGalleryItem cmdlet 从 vmm12sp1_long 或 Service Provider Foundation 数据库中删除库项。
示例
示例 1:删除库项
PS C:\>$Item = Get-SCSPFVMRoleGalleryItem -Name "570569955cbfb62b374358b34467
020750f65c"
PS C:\> Remove-SCSPFVmRoleGalleryItem -VMRoleGalleryItem $Item
第一个命令按名称获取项,并将其存储在$Item变量中。 下一个命令将删除该项。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定要删除的库项的发布者。
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Publisher
指定要删除的项的发布者。
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Version
指定要删除的项的版本。
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMRoleGalleryItem
指定要删除的一个或多个库项。
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
显示在此 cmdlet 运行的情况下将会发生什么。 此 cmdlet 未运行。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem[]
输出
System.Object