Created
November 25, 2022 09:50
-
-
Save AlexanderHolmeset/e85c7279bc9853d16fa3740f888fd01f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Sites = import-csv c:\temp\CopyContentOneDrive.csv -Delimiter "," | |
$tenantsource = Connect-Site -Url "https://contoso-admin.sharepoint.com" -Browser | |
foreach($site in $Sites){ | |
Add-SiteCollectionAdministrator -SiteUrl $site.SourceSite -CentralAdmin $tenantsource | |
} | |
$tenantdest = Connect-Site -Url "https://tailspin-admin.sharepoint.com" -Browser | |
foreach($site in $Sites){ | |
Add-SiteCollectionAdministrator -SiteUrl $site.DestinationSite -CentralAdmin $tenantdest | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment