Exchange 2010, I am using the following in the exchange management shell
$mailidentities = Get-Mailbox | Get-MailboxPermission | where {$_.identity.tostring() -like "* STAFF/*" -and $_.identity.tostring() -NotLike "*Ex_Staff*" -and $_.User.tostring() -like "*SELF*" -and $_.IsInherited -eq $false} | Select-object Identity
foreach ($mailidentity in $mailidentities)
{
Write-Host "$mailidentity"
}
The results are returned @{Identity=domain/Group/UserName}
What is the correct syntax to get back only domain/Group/UserName
?
The final outcome is to assign fullaccess permission to a supervisory mailbox to each user.