OfficeDev / DLPmigrationassistant

Repo to share the DLPmigrationassistant Tool
9 stars 7 forks source link

Not able to connect to security and compliance center using the tool #8

Closed mjagadeesh408 closed 2 years ago

mjagadeesh408 commented 2 years ago

When I am providing credentials to connect to security and compliance center PowerShell, it is throwing error saying " There was an issue in connecting to Security & Compliance Center. Please try running the tool again after some time."

image

I tried restarting the system and running the tool, re-installing the tool etc., and still it is not working. The account I am using for logging in have compliance admin, security admin and Global reader roles as well.

mjagadeesh408 commented 2 years ago

Any help regarding this issue?

snehakishore21 commented 2 years ago

Any help regarding this issue?

Can you please share the log file? Can you please check if you are able to login to Security & Compliance PowerShell or Exchange Online in separate PowerShell window on your machine? Once try disconnecting Exchange-Online from everywhere(each PowerShell session) using Disconnect-ExchangeOnline and then try again.

tmoen2015 commented 2 years ago

I have a customer experiencing the same issue. They are using other commandlets and powershell scripts but this fails. It cannot connect to the Compliance Center and the user was able to run other compliance powershell commands. This custoemr is in GCC.

snehakishore21 commented 2 years ago

Currently GCC tenants is not supported but to support that you can make few changes in the created PowerShell scripts and retry once:

Please find these two ps1 files: For both login page, (C:\Users\\AppData\Local\Temp\MigrationAssistantforMicrosoftDLP\output\Symantec\\FetchMIPDetails.ps1) and connect&import page (C:\Users\\AppData\Local\Temp\MigrationAssistantforMicrosoftDLP\output\Symantec\\Symantec_PsDlpCommands.ps1),

Find the line: Connect-IPPSSession -UserPrincipalName $userName -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue

and replace this with: $ConnectionUri = 'https://l5.ps.compliance.protection.office365.us/powershell-liveid/' (for O365USGovDoD) $ConnectionUri = 'https://ps.compliance.protection.office365.us/powershell-liveid/' (for O365USGovGCCHigh)

Connect-IPPSSession -UserPrincipalName $userName -ConnectionUri $ConnectionUri -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue

Please try this once and let us know if this works.