Copy-RASPubItem

NAME

Copy-RASPubItem

SYNOPSIS

Copy a Published item.

SYNTAX

Copy-RASPubItem -Idarrow-up-right <uint> [-ParentIdarrow-up-right <uint>] [-PreviousIdarrow-up-right <uint>] [<CommonParametersarrow-up-right>] Copy-RASPubItem [-InputObjectarrow-up-right] <PubItemarrow-up-right> [-ParentIdarrow-up-right <uint>] [-PreviousIdarrow-up-right <uint>] [<CommonParametersarrow-up-right>]

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 <PubItemarrow-up-right> 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

PubItemarrow-up-right

OUTPUTS

PubItemarrow-up-right

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.

Last updated