Skip to main content
New Planner Copy Options
Updated over 2 weeks ago

Command

New-PlannerCopyOptions

Description

The command to create planner copy options when copying plans.

Examples

Create planner copy options

New-PlannerCopyOptions -CopyScope NoComments

Copy a plan with options

$sourceTenant = Connect-Tenant -Domain tenantDomain
$sourceGroup = Get-Microsoft365Group -Name "MyGroup" -Tenant $sourceTenant
$plan = Get-PlannerPlan -Name "MyPlan" -Group $sourceGroup
$destinationTenant = Connect-Tenant -Domain destinationDomain
$destinationGroup = Get-Microsoft365Group -Name "DestinationGroup" -Tenant $destinationTenant
$options = New-PlannerCopyOptions -CopyScope OnlyBuckets -IncludeMembership
Copy-PlannerPlan -PlannerPlans $plan -DestinationGroup $destinationGroup -CopyOptions $options

Syntax

These are sets of compatible parameters for the New-PlannerCopyOptions command.

New-PlannerCopyOptions
[-CopyScope <CopyScope {Everything | NoComments | OnlyBuckets | OnlyPlan}>]
[-IncludeMembership <SwitchParameter>]

You can get the syntax of any command in PowerShell with this script:

Get-Command Copy-Site -SyntaxParameters

Parameters

-CopyScope <CopyScope>

Specifies the copy scope of the Planner copy : Everything, NoComments, OnlyBuckets or OnlyPlan

Required?

False

Default value

Everything

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-IncludeMembership <SwitchParameter>

Specifies to include the membership in the migration scope

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?