Use m365_restore_sharepoint.ps1 after a SharePoint or OneDrive migration to undo the tenant setting changed by
m365_initialize_sharepoint.ps1.
If the initialize script disabled owner notifications for reshared items, the restore script re-enables them so owners
resume receiving those notifications. It makes no change when notifications were already disabled before the migration.
The restore script requires m365_restore_sharepoint.json, which the initialize script writes to the Documents
directory of the account that ran it. Run the restore script from that same user account and leave the JSON file in its
original location so it can verify that the setting should be restored.
common.psm1, m365.psm1 and m365_restore_sharepoint.ps1 from the TMCTools/bin
folder..\m365_restore_sharepoint.ps1
-SharePointDomain <SharePointDomain>
[-CloudEnvironment <Default | DoD | GCCHigh | China | Germany>]
| Parameter | Required | Values | Description |
|---|---|---|---|
-SharePointDomain |
Yes | SharePoint domain | The SharePoint domain to connect to. |
-CloudEnvironment |
No | Default, DoD, GCCHigh, China, Germany |
The cloud environment to connect to. Use this option if your tenant is not in the worldwide cloud. |
.\m365_restore_sharepoint.ps1 -SharePointDomain 'example'
Documents directory for more information.