Feb 19 2024 05:17 AM - edited Feb 27 2024 06:44 AM
Hi Everyone,
I had a script running in EXOv2 version where the script had following part.
(Get-EXOMailbox -propertyset all -RecipientTypeDetails SharedMailbox -Identity "username" -Properties ExchangeSecurityDescriptor).DiscretionaryAcl.Count
Using this i was able to identify if delegates are present for the delegator provided.
Can someone please help me with any suggestions here for the equivalent EXOv3 cmdlets if available?
I tried with following
$sharedMailboxes = Get-EXOMailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited
# Retrieve ExchangeSecurityDescriptor for each shared mailbox
$sharedMailboxes | ForEach-Object {
$mailbox = $_
$securityDescriptor = Get-EXOMailboxPermission -Identity $mailbox.DisplayName |
Where-Object { $_.User -eq 'NT AUTHORITY\SELF' }
$mailbox | Select-Object DisplayName, LinkedMasterAccount, @{
Name = 'ExchangeSecurityDescriptor'
Expression = { $securityDescriptor }
}, GrantSendOnBehalfTo
}
but its like increasing the number of calls i am making to powershell.
Feb 20 2024 11:12 AM
Hello! You've posted your question in the Tech Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Exchange space - please post Exchange questions here in the future.
(I am guessing at the correct space based on context, but if I am incorrect, please let me know.)