We help IT Professionals succeed at work.

office 365, analytics add-in

pramod1
pramod1 asked
on
Medium Priority
93 Views
Last Modified: 2019-12-11
i am having E3 license for all users in my company.

how to disable MY Analytics for whole organization so that they dont receive email

i dont see under service and addin section

is there any command shell i can use to disable my analytics
Comment
Watch Question

NoahHardware Tester and Debugger
CERTIFIED EXPERT
Commented:
Hi there! :)

You may refer to the following article, it provides an example code which can fit your requirements.

Reference: https://office365itpros.com/2019/09/20/why-office-365-users-receive-myanalytics-messages/

# Report what mailboxes are enabled for MyAnalytics
$Mbx = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Select DisplayName, UserPrincipalName
$MyAnalyticsCount = 0
ForEach ($M in $Mbx) {
   $MyAnalytics = Get-UserAnalyticsConfig -Identity $M.UserPrincipalName | Select PrivacyMode
   If ($MyAnalytics.PrivacyMode -eq "opt-in") { 
       $MyAnalyticsCount++
       Write-Host "MyAnalytics is enabled for" $M.DisplayName }
   Else { Write-Host "MyAnalytics is not enabled for" $M.DisplayName}
}
Write-Host "MyAnalytics is enabled for" $MyAnalyticsCount "of" $Mbx.Count "mailboxes"

Open in new window

IT Consultant
CERTIFIED EXPERT
Commented:
Surf and signin to portal.office.com
Click ADMIN
Click SETTINGS
Click SERVICES & ADD-INS
Click MyAnalytics
Disable INSIGHTS DASHBOARD, WEEKLY EMAIL INSIGHTS EMAIL and/or INSIGHTS OUTLOOK ADD-IN
Saif ShaikhServer engineer
CERTIFIED EXPERT
Commented:
# Disable Selected Mailboxes for MyAnalytics

$Mbx = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited -Filter {CustomAttribute7 -eq "NoMyAnalytics"} | Select DisplayName, UserPrincipalName
ForEach ($M in $Mbx) {
     Write-Host "Disabling MyAnalytics for" $M.DisplayName
     Set-UserAnalyticsConfig -Identity $M.UserPrincipalName -PrivacyMode "opt-out" }

Explore More ContentExplore courses, solutions, and other research materials related to this topic.