Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Copy-PlannerPlan
Beschreibung
Der Befehl zum Kopieren von Plänen von einer Microsoft 365-Gruppe in eine andere Microsoft 365-Gruppe. Die Zielgruppe kann sich im selben oder in einem anderen Mandanten befinden.
Beispiele
Einen Plan kopieren
$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 $destinationTenantCopy-PlannerPlan -PlannerPlans $plan -DestinationGroup $destinationGroup
Mehrere Pläne kopieren
$sourceTenant = Connect-Tenant -Domain tenantDomain$sourceGroup = Get-Microsoft365Group -Name "MyGroup" -Tenant $sourceTenant$plans = Get-PlannerPlan -Name "MyPlan", "MyPlan2", "MyPlan3" -Group $sourceGroup -AllowMultiple$destinationTenant = Connect-Tenant -Domain destinationDomain$destinationGroup = Get-Microsoft365Group -Name "DestinationGroup" -Tenant $destinationTenantCopy-PlannerPlan -PlannerPlans $plans -DestinationGroup $destinationGroup
Alle Pläne einer Gruppe kopieren
$sourceTenant = Connect-Tenant -Domain tenantDomain$sourceGroup = Get-Microsoft365Group -Name "MyGroup" -Tenant $sourceTenant$plans = Get-PlannerPlan -Name "*" -Group $sourceGroup -AllowMultiple$destinationTenant = Connect-Tenant -Domain destinationDomain$destinationGroup = Get-Microsoft365Group -Name "DestinationGroup" -Tenant $destinationTenantCopy-PlannerPlan -PlannerPlans $plans -DestinationGroup $destinationGroup
Einen Plan mit Optionen kopieren
$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 -IncludeMembershipCopy-PlannerPlan -PlannerPlans $plan -DestinationGroup $destinationGroup
Mit diesem Skript können Sie die Syntax jedes Befehls in PowerShell abrufen:
Get-Command Copy-Site -SyntaxParameters
Syntax
Copy-PlannerPlan
-PlannerPlans <PlannerPlan[]>
-DestinationGroup <Microsoft365Group>
[-CopyOptions <PlannerCopyOptions>]
[-NormalMode <SwitchParameter>]
[-MappingSettings <MappingSettings>]
[-TaskName <String>]
Parameter
-CopyOptions <PlannerCopyOptions>
Gibt die Kopieroptionen an (Kopierbereich).
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-DestinationGroup <Microsoft365Group>
Gibt die Ziel-M365-Gruppe an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-NormalMode <SwitchParameter>
Gibt an, dass der normale Modus verwendet werden soll. Hinweis: Insane mode wird bei PowerShell standardmäßig immer verwendet.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-PlannerPlans <PlannerPlan[]>
Gibt die Planner-Pläne an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-TaskName <String>
Gibt einen Namen für die Aufgabe an.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
