Tag Archives: Exchange

Exchange remove member from all e-mail groups using shell

Remove-DistributionGroupMember  -member jon.doe -confirm:$false -Identity “Staff” Staff = group name Add-DistributionGroupMember for adding members to a group To remove jon.doe from all groups: $GG = Get-DistributionGroup $RG = $GG  | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains “jon.doe@domain.com”} foreach( … Continue reading

Posted in Exchange | Tagged | 1 Comment

Exchange enable mailbox audit

set-Mailbox my.mailbox -AuditEnabled $true Get-Mailbox my.mailbox | fl *audit*   (view  if auditing is enabled) Get-LogonStatistics -Identity my.mailbox |fl ClientIpAddress  (obvious)

Posted in Exchange | Tagged | Leave a comment

Exchange – add address to Outlook’s safe senders list

get-DistributionGroupMember -identity “Staff” | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{Add=’john@domain.com’, ‘@domain2.com’} (for a group) get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{Add=’john@domain.com’, ‘@domain2.com’} (for all) get-MailboxJunkEmailConfiguration -identity “ALIAS” (check)

Posted in Exchange | Tagged , | Leave a comment