Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get all mail-enabled public folders
- $mailEnabledPublicFolders = Get-MailPublicFolder
- # For each public folder, get the email address and MailRecipientGuid
- $mailEnabledPublicFolders | Select-Object Name, @{Name="MailRecipientGuid";Expression={$_.Guid}}, PrimarySmtpAddress | Export-Csv -Path "C:\Path-to-File.csv" -Delimiter ';' -Encoding UTF8 -NoTypeInformation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement