-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathSampleMigrationScript.txt
40 lines (25 loc) · 1.87 KB
/
SampleMigrationScript.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#Define on premises credentials. (This assumes credential XMLs were previously defined.)
$adCred = import-cliXML c:\path\adCred.XML
$entraIDCred = import-cliXML c:\path\entraIDCred.XML
$exchangeOnPremCred = import-cliXML c:\path\exchangeOnPremCred.XML
#Define Active Directory information
$globalCatalogServer = "gc.contoso.local"
#Define EntraID Connect information
$aadConnectServer = "aadConnect.contoso.local"
$Define Exchange On Premises information
$exchangeServer = "exchange.contoso.local"
#Define ms graph connection information
$msGraphTenantID="68cef4f8-9392-496c-b414-9bbb61246d3b"
$msGraphCertificateThumbprint="FC92991B21219F178AFB37C12DF231B6AFC3D790"
$msGraphApplicationID="49390024-2b8c-46f3-a332-f1ae849267b4"
#Define Exchange Online connection information
$exchangeOnlineCertificateThumbPrint="FC92991B21219F178AFB37C12DF231B6AFC3D790"
$exchangeOnlineOrganizationName="contoso.onmicrosoft.com"
$exchangeOnlineAppID="49390024-2b8c-46f3-a332-f1ae849267b4"
#Define additional parameters
$enableHybridMailFlow = $TRUE
$logFolderPath = "c:\DLMigrations\Logs"
$dnNoSyncOU = "OU=NoSync,DC=contoso,DC=local"
$groupSMTPAddress = "[email protected]"
#Execute common migration command
start-distributionListMigration -groupSMTPAddress $groupSMTPAddress -globalCatalogServer $globalCatalogServer -activeDirectoryCredential $adCred -aadConnectServer $aadConnectServer -aadConnectCredential $entrIDCred -exchangeServer $exchangeServer -exchangeCredential $exchangeOnPremCred -msGraphTenantID $msGraphTenantID -msGraphCertificateThumbprint $msGraphCertificateThumbprint -msGraphApplicationID $msGraphApplicationID -exchangeOnlineAppID $exchangeOnlineAppID -exchangeOnlineCertificateThumbPrint $exchangeOnlineCertificateThumbPrint -exchangeOnlineOrganizationName $exchangeOnlineOrganizationName -enableHybridMailFlow $enableHybridMailFlow -logFolderPath $logFolderPath -dnNoSyncOU $dnNoSyncOU