Forum Discussion
kbalci4
Jan 22, 2024Copper Contributor
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!
- I suppose you missed this announcement: https://techcommunity.microsoft.com/t5/exchange-team-blog/change-in-naming-convention-of-user-s-name-parameter/ba-p/3284733
- I suppose you missed this announcement: https://techcommunity.microsoft.com/t5/exchange-team-blog/change-in-naming-convention-of-user-s-name-parameter/ba-p/3284733
- kbalci4Copper Contributori did miss this! thank you for providing this info
- RecepGencaslanCopper Contributor
Hello kbalci4, I understand that when you run the script to export MailboxFolderPermission in a CSV file you see the latest user added to the calendar permission as strings. Please let me know if my understanding is correct.
In addition, Please confirm if the affected users are synced users. if yes, this announcement is related: Change in naming convention of user’s Name parameter - Microsoft Community Hub