O365, Tech Random's, Tips and Tricks

Disable Clutter through O365 Admin Dashboard with Powershell

Disable clutter on O365 Admin Dashboard

Step 1: Run Powershell ISE as Administrator

Step 2 – Run: Set-ExecutionPolicy RemoteSigned

A popup will occur, choose “Yes to All”.  Just make sure you know what you are doing before proceeding.

Step 3 – Enter username and Password
$UserCredential = Get-Credential

-It will not let you know if your credentials are wrong.

Step 3 – Run:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Step 4 – Run:
Import-PSSession $Session

Step 5 – Run:
Get-Mailbox | Set-Clutter -Enable $false

Step 6 – Remember to end the session with:
Remove-PSSession $Session

Or you can just run all of them together, by saving as a .ps1
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Get-Mailbox | Set-Clutter -Enable $false
Remove-PSSession $Session

Leave a Reply

Your email address will not be published.