Skip to content

Instantly share code, notes, and snippets.

@AlexanderHolmeset
Created November 25, 2022 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderHolmeset/08f430bccbd7be9a09817b1ae8745b44 to your computer and use it in GitHub Desktop.
Save AlexanderHolmeset/08f430bccbd7be9a09817b1ae8745b44 to your computer and use it in GitHub Desktop.
$source = Connect-Tenant -Domain contoso.onmicrosoft.com -Browser
$destination = Connect-Tenant -Domain tailspin.onmicrosoft.com -Browser
#Enter the date from when the sesion you want to run incremental on is from.
$sessions = Find-CopySessions -From "11/25/2022"
$sessions | ForEach-Object { Copy-TeamIncremental -SessionId $_.Id -SourceTenant $source -DestinationTenant $destination }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment