0 votes

Is it possible to connect to the Microsoft 365 Security & Compliance center through a PowerShell script? We are trying to configure users that belong to a specific department for a retention policy through the use of the Set-RetentionCompliancePolicy command.

by (120 points)

1 Answer

0 votes
by (300k points)

Hello,

As per Microsoft documentation, connecting to Microsoft 365 Security & Compliance center should work just fine via PowerShell. For details, have a look at the following article: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-scc-powershell?view=exchange-ps.

Related questions

+1 vote
1 answer

I am trying to connect to teams via powershell in adaxes to run the following commands. Set-CsUser -Identity <UPN> -EnterpriseVoiceEnabled $true -HostedVoiceMail $true ... (policyname)" I am not able to run the following though, Connect-MicrosoftTeams

asked Apr 22, 2021 by TJ_Umredkar (140 points)
0 votes
1 answer

I am trying to automate some of my o365 scripts so that the helpdesk can run them with elevated permissions and not have that ... -Credential $o365Credentials -Authentication Basic -AllowRedirection Import-PSSession $session -AllowClobber -DisableNameChecking

asked Nov 23, 2018 by jbadry (430 points)
0 votes
1 answer

When i want to register a new Managed Domain, i get an error: Unavailable Domain. An error occured when connectiong to domain '...'. The Server is not operational.

asked Mar 19 by IDKOM (40 points)
0 votes
0 answers

By default, in hybrid environments, when an on-premises AD object is created in Adaxes within the scope of a Microsoft 365 tenant, Adaxes will create the corresponding ... the Display the temporary password in the Execution Log checkbox. Click OK twice.

asked Nov 16, 2022 by Adaxes (580 points)
0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16, 2024 by dominik.stawny (280 points)
3,667 questions
3,352 answers
8,468 comments
549,173 users