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 (100 points)

1 Answer

0 votes
by (227k 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 (410 points)
0 votes
1 answer

I have to generate an Excel sheet populated with some users informations. It works on the server itself, but not when i run it via Custom commands. There is the code that ... it does'nt open and throws an error : How to interact with com objects on Adaxes?

asked Nov 29, 2021 by diaz801 (20 points)
0 votes
0 answers

Can Adaxes verify the email address and if it existings add a number? I am testing what happens if duplicate accounts exist. I get this error if trying to create an account with ... #mn operation) at #9m.#nn.Execute() --- End of inner exception stack trace ---

asked Sep 15, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Changing the "Forgot your password?" text.

asked Mar 10, 2020 by msylvester (60 points)
2,801 questions
2,535 answers
6,605 comments
61,659 users