Set-SCSPFVMRoleGalleryItem
Applies To: System Center 2012 R2 Orchestrator
Set-SCSPFVMRoleGalleryItem
Sets the publishing status of an item in the gallery.
Syntax
Parameter Set: FromGalleryItemParameterSetName
Set-SCSPFVMRoleGalleryItem -Package <Stream> -VmRoleGalleryItem <VMRoleGalleryItem> [-PublishingStatus <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-SCSPFVMRoleGalleryItem cmdlets sets the status of an item in the gallery to either publish or un-publish.
Parameters
-PublishingStatus<String>
Specifies either published or un-unpublished.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VmRoleGalleryItem<VMRoleGalleryItem>
Specifies the gallery item to set.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Package<Stream>
Specifies an object of type System.IO.MemoryStream that contains the resource package of the gallery item.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
1: Set a gallery item to publish
This command sets an item to be published in the gallery.
PS C:\> Set-SCSPFVmRoleGalleryItem –VmRoleGalleryItem $gall7 -PublishingStatus published