Forum Discussion

kbalci4's avatar
kbalci4
Copper Contributor
Jan 22, 2024

Powershell Exchange Mailbox Alias results strange output

Hello, im looking for some help with my script that outputs correctly just showing a strange string as the user's alias.

 

script:

$mailboxes = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited


foreach ($mailbox in $mailboxes) {

Start-Sleep -Milliseconds 500
Get-MailboxFolderPermission "$($mailbox.Alias):\calendar" | Export-Csv -Path .\O365-check.csv -NoTypeInformation -Append


}

 

after running when you look through the CSV you will see normal alias:\calendar for most accounts but for new ones added you will see something like --> 06ee2d52-22b9-4e2d-8a49-2a437e556cf5:\calendar
i am not sure why. it is still setting the permissions to the accounts but it just shows up like that so i cant identify specific accounts with that weird string.


any help is appreciated!

Resources