Skip to main content

PowerShell command Announced to move and replace SharePoint Sites, including the Root Site (!!!)

Microsoft Office Enterprise Pre-Release Programs

This email is for the direct recipient only and contains a link to activate your Yammer account.

Wayne Ewington sent you a message.

Hi All,

Just to let you know that we have a new PowerShell cmdlet in the pipeline that will allow the SharePoint Tenant Admin to swap the location of a Site Collection with another Site Collection without deleting the original one.

Or in other words… We are providing the ability to archive the Site Collection at https://<tenant>.sharepoint.com to https://<tenant>.sharepoint.com/sites/<ArchiveSite> and then move an existing Site Collection at https://<tenant>.sharepoint.com/sites/<NewRootSite> to https://<tenant>.sharepoint.com as a single action.

Or in yet more other words… We are providing the ability to replace the existing root site with something shiny and new!

We are also currently making this available for the tenants in the Early Preview group (which should be completed within the next 48 hours and hopefully sooner), so that you can start using this.

Please note that this is still in early release so there are a few caveats and things that you need to be aware of:

  • This is an early release and we still have some more work to do before making this generally available.
  • After performing the swap, the target site can return an HTTP 404 error for about five minutes (until the caches are cleared).
  • Searches indexes of the swapped sites will be stale until the content is recrawled.
  • Anything dependent on "static" links (such as File Sync and OneNote files) will need to be manually corrected.
  • We also have the following constraints in place (some of which we which we may remove shortly) as to what you can currently swap:

BTW we are planning to demo this at SPC NA (May 21 - 23) so if you keep this internally until then, then that would be fantastic.

Anyway, to get started, you need to install version 16.0.8812.1200 (or later) of the Microsoft SharePoint Online Services Module for Windows PowerShell available from https://www.powershellgallery.com/packages/Microsoft.Online.…

You can then use the following new PowerShell cmdlet:

Invoke-SPOSiteSwap -SourceUrl "https://<tenant-name>.sharepoint.com/sites/<SiteName>" -TargetUrl "https://<tenant-name>.sharepoint.com" -ArchiveUrl "https://<tenant-name>.sharepoint.com/sites/<ArchiveSite>"

Hopefully this is great news - We are certainly excited about this!

Looking forward to getting your feedback and I'll also follow up with a survey in a few days time.

Enjoy!

Thanks,

Wayne Ewington

 

Yammer

Microsoft Corporation | One Microsoft Way, Redmond, WA 98052, USA..

Comments

Popular posts from this blog

Message center announcements, December 11, 2023 - December 17, 2023

  View a summary of the updates.                                                                                                                                                                ...

Schedule Management for Firstline workers coming to Teams through Shifts app

    Organization: HCS COMPANY Schedule Management for Firstline workers coming to Teams through Shifts app     Major update: General Availability rollout started Applied to: All customers     New app: Microsoft Teams Shifts app for Schedule Management Shifts, your schedule management tool in Teams, will be publicly available to all Teams users on Web, Desktop, Mac, iOS and Android. Shifts is rolling out now and will be completed shortly. This message is associated with Microsoft 365 Roadmap ID 43333 . [How does this affect me?] Shifts can be accessed by users from the overflow menu located in the navigation bar on all clients. Shifts is enabled by default for all Teams users in your organization. Shifts is not available in GCC at this time...

Office Telemetry Dashboard to be removed from #Microsoft365 Apps for enterprise, starting with Version 2208

Office Telemetry Dashboard to be removed from Microsoft 365 Apps for enterprise, starting with Version 2208 MC262540 · HCS COMPANY MICROSOFT SERVICES B.V. Office Telemetry Dashboard is being removed from Microsoft 365 Apps for enterprise. The first version of Microsoft 365 Apps for enterprise without Office Telemetry Dashboard will be Version 2208, which is expected to be available first in Current Channel in the second half of August 2022. Note: If you do not use Office Telemetry Dashboard, you can disregard this message. Components of the Office Telemetry Dashboard will no longer be available in Version 2208 or later including the Office Telemetry Agent, Office Telemetry Processor, and the dashboard itself. Note: Office Telemetry Log is not being removed and will still be available on client devices running Windows. When will this happen: The first version of Microsoft 365 Apps for enterprise without Office Telemetry Dashboard will be Version 2208. That version is expected to be ...