Export-Mailbox -id mailbox@domain.com -TargetMailbox ExportMB@domain.com -TargetFolder SpamMailExp -SubjectKeywords "subject key words" -StartDate "23/01/2013"
Get-Content "C:\temp_\Users.txt" | Add-DistributionGroupMember -Identity "DL"
Import-Csv "C:\temp_\Users.csv" | foreach {Add-DistributionGroupMember -Identity "DL" -Member $_.EmailId}
Get-DistributionGroupMember -identity "DL-NAME" -ResultSize Unlimited | export-csv -NoTypeInformation -path "C:\temp_\dlusers.csv"
Get-ADGroupMember "SEC-GROUP-NAME" | Get-ADUser | Select-Object Name, mail | Export-Csv -Path "C:\Temp_\User.csv" -NoTypeInformation
No comments:
Post a Comment