Logo

Documentation home for Transend tools

Microsoft 365 Initialize App script

Use m365_initialize_app.ps1 to create and configure the Microsoft Entra ID app that Transend products use to connect to Microsoft 365.

After the migration is complete, remove the app registration if it is no longer needed, following your organization’s application-retirement process.

Setup

  1. Download TMCTools.
  2. From the TMCTools zip file, extract common.dll, m365.dll and m365_initialize_app.ps1 from the TMCTools/bin folder.

Usage

.\m365_initialize_app.ps1
  -TenantId <TenantId>
  [-AddTmcTools]
  [-CloudEnvironment <Default | DoD | GCCHigh | China | Germany>]

Parameters

Parameter Required Values Description
-TenantId Yes Tenant identifier The tenant ID to connect to.
-AddTmcTools No Switch Include TMCTools permissions in addition to TMC permissions.
-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.

Examples

Example 1: Create the default migration app

.\m365_initialize_app.ps1 -TenantId 'example.org'

Example 2: Create an app for TMC and TMCTools

.\m365_initialize_app.ps1 -TenantId 'example.org' -AddTmcTools

Troubleshooting

  • Review the log file in your Documents directory for more information.