The Microsoft veteran and passionate manager that was in charge for Surface, and more recently Windows client leaves the company has announced by Rajesh Jha, Microsoft's EVP of Experiences & Devices in an internal email this morning:
So for some strange reason, when you navigate to your Tenant Status Details, you notice that your MDM authority is Microsoft Office 365 instead of Microsoft Intune?
This can happen for a variety of reasons:
One mailbox that you probably going to identify, it's the eDiscovery Mailbox. Usually it's "name" is something like "DiscoverySearchMailbox{alotofnumbers}@yourdomain.com".
For this one, my previous posted command does not work.
So, to be able to enable auditing for this mailbox, the easiest way that I found is this one:
#Catch the mailbox name and add it to a variable | |
$dsm = Get-Mailbox -ResultSize unlimited | Where-Object {$_.name -match "discovery"} | Select-Object alias,displayname,auditenabled | |
#Enable mailbox auditing where identity it's catched from the previous variable | |
Set-Mailbox -Identity $dsm.alias -AuditEnabled $true |
One of the Microsoft Secure Score recommendations is to ensure mailbox auditing for all users is enabled.
Although within the recommendation implementation there's a powershell command to do it organization wide, there's always the need to do it individually for resource mailboxes for example.
So, to enable auditing organization wide command is this one:
Set-OrganizationConfig -AuditDisabled $false |
Get-Mailbox -ResultSize unlimited | where {$_.auditenabled -eq $False} | select userprincipalname, auditenabled |
Set-Mailbox -Identity "userprincipalname" -AuditEnabled $true |
PowerShell.exe -ExecutionPolicy Bypass | |
Install-Script -name Get-WindowsAutopilotInfo -Force | |
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned | |
Get-WindowsAutopilotInfo -Online |