Advertisement
goezler

Retrive and export all Public folders with GUID

Jul 24th, 2024
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Get all mail-enabled public folders
  2. $mailEnabledPublicFolders = Get-MailPublicFolder
  3.  
  4. # For each public folder, get the email address and MailRecipientGuid
  5. $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