Monthly Archives: April 2013

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