Get all instances of "This email address is being protected from spambots. You need JavaScript enabled to view it." on an on-prem / Office365 environment
$path=[Environment]::GetFolderPath("Desktop")
Start-transcript $path\objects.txt
Get-OrganizationConfig | fl
Get-Msoluser -all | Where-Object {$_.UserPrincipalName -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Msoluser -all | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolUser -all | Where-Object {$_.ProxyAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolUser -all | Where-Object {$_.WindowsLiveId -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolContact -all | Where-Object {$_.UserPrincipalName -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolContact -all | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Msoluser -returndeletedusers -all | Where-Object {$_.UserPrincipalName -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Msoluser -returndeletedusers -all | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolUser -returndeletedusers -all | Where-Object {$_.ProxyAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolUser -returndeletedusers -all | Where-Object {$_.WindowsLiveId -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolGroup -all | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MsolGroup -all | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-DistributionGroup -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-DistributionGroup -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-DynamicDistributionGroup -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-DynamicDistributionGroup -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-UnifiedGroup -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-UnifiedGroup -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Recipient -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Recipient -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailContact -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailContact -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailUser -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailUser -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-User -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-User -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -Softdeleted -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -Softdeleted -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -InactiveMailboxOnly -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -InactiveMailboxOnly -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -PublicFolder -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Mailbox -PublicFolder -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailPublicFolder -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-MailPublicFolder -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-SiteMailbox -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-Sitemailbox -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-securityprincipal -ResultSize unlimited | Where-Object {$_.EmailAddresses -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Get-securityprincipal -ResultSize unlimited | Where-Object {$_.Name -match "This email address is being protected from spambots. You need JavaScript enabled to view it."}
Stop-transcript