Closed mjagadeesh408 closed 2 years ago
Any help regarding this issue?
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.
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.
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\
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.
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."
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.