Made available to more than just E5 licencees earlier this year, MyAnalytics will, by default, send users weekly emails regarding their work patterns.
Users can control this themselves in settings pane of the MyAnalytics web app.
Administrators cannot, in bulk, keep MyAnalytics enabled for users but disable the email digest. The following PowerShell example instead disables MyAnalytics across all your Microsoft 365 Business licensed users, and therefore removing these emails.
This makes use of New-MsolLicenseOptions, a cmdlet with which you remove services by creating a LicenseOptions object that is then assigned to the user. The object exists only in the PowerShell session and when applied is just the standard license less the services you remove.
If you use a subscription other than M365 Business, change the value *SPB in the $M365 variable to the correct string ID as per Microsoft’s product names and service plan identifiers documentation. Similarly, you could remove other services. For example, remove Planner by changing MYANALYTICS_P2 to PROJECTWORKMANAGEMENT. If you want to remove multiple, list these comma seperated within the same LicenseOption, and importantly note this applies absolutely – if you have already removed a service and use this to remove one more, you must also list the previously removed service, or it will be made available.
1 2 3 4 |
$M365 = (Get-MsolAccountSku | Where-Object {$_.AccountSkuId -Like "*SPB"}).AccountSkuId $LicenseOptions = New-MsolLicenseOptions -AccountSkuId $M365 -DisabledPlans "MYANALYTICS_P2" $M365Users = Get-MsolUser -All | Where-Object {($_.licenses).AccountSKUId -match $M365} $M365Users | Set-MsolUserLicense -LicenseOptions $LicenseOptions |
If you want to remove multiple, list these comma seperated within the same LicenseOption. For example, “MYANALYTICS_P2″,”PROJECTWORKMANAGEMENT”.
Importantly, note that LicenseObjects applies absolutely – if you have already removed a service and use this to remove one more, you must also list the previously removed service, or it will be made available.