Use m365_restore_graph.ps1 after a Microsoft Graph calendar migration to undo the tenant- and mailbox-level changes made by
m365_initialize_graph.ps1.
This removes the Transend application from allow lists or returns it to block lists as needed, and restores Graph
enablement and access-policy settings that the initialize script changed.
The restore script requires m365_restore_graph.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 the script can distinguish migration changes from pre-existing EWS configuration.
common.psm1, m365.psm1 and m365_restore_graph.ps1 from the TMCTools/bin
folder..\m365_restore_graph.ps1
[-CloudEnvironment <Default | DoD | GCCHigh | China | Germany>]
| Parameter | Required | Values | Description |
|---|---|---|---|
-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_graph.ps1
Documents directory for more information.