Copy-RASPubItem.md
NAME
Copy-RASPubItem
SYNOPSIS
Copy a Published item.
SYNTAX
Copy-RASPubItem -Id (uint) [ParentId (uint)] [PreviousId (uint)] [(CommonParameters)]
Copy-RASPubItem [-InputObject] (PubItem) [ParentId (uint)] [PreviousId (uint)] [(CommonParameters)]
DESCRIPTION
Copy (duplicate) a published item.
PARAMETERS
Id (uint)
ID of Pub item to duplicate.
To obtain the pub item ID, use the Get-PubItem command.
InputObject (PubItem)
The published item object.
To obtain a PubItem object representing a published item, use the Get-PubItem command.
ParentId (uint)
ID of a new parent published item.
To obtain the published item ID, use the Get-PubItem command.
PreviousId (uint)
ID of a sibling item after which to place the specified published item.
To obtain the sibling item ID, use the Get-PubItem command.
(CommonParameters)
INPUTS
OUTPUTS
EXAMPLES
**---------- EXAMPLE 1 ----------
Copy-RASPubItem -Id 5 -ParentId 12
Duplicate the specified published item and it under the specified parent (ParentId).
To obtain the parent item ID, use the Get-RASPubItem cmdlet. **---------- EXAMPLE 2 ----------
Copy-RASPubItem -Id 10 -ParentId 12 -PreviousId 22
Duplicate a published item and place it under the specified parent (ParentId) and after the specified sibling item (PreviousId).
To obtain the parent item ID, use the Get-RASPubItem cmdlet. **---------- EXAMPLE 3 ----------
$PubItem | Copy-RASPubItem -ParentId 12
Invoke the duplicate pub item command, which is identified by an object obtained from the pipeline output.
To obtain the parent item ID, use the Get-RASPubItem cmdlet.
RELATED LINKS
Last updated