Copy-RASPubItem
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.
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
InputObject (PubItem)
The published item object.
To obtain a PubItem object representing a published item, use the Get-PubItem command.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
ParentId (uint)
ID of a new parent published item.
To obtain the published item ID, use the Get-PubItem command.
Required? false
Position? named
Default value 4294967295
Accept pipeline input? false
Accept wildcard characters? false
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.
Required? false
Position? named
Default value 4294967295
Accept pipeline input? false
Accept wildcard characters? false
(CommonParameters)
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters documentation.
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