Skip to content

Commit

Permalink
Merge pull request #2133 from Shanefe/RBA_GetRecp
Browse files Browse the repository at this point in the history
Change Get-MB to Get-Recipient
  • Loading branch information
bill-long authored Jul 17, 2024
2 parents 6c2203d + 283acd7 commit 7c0dacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Calendar/Get-RBASummary.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ function OutputMBList {
$Org = $Identity.Split('@')[1]

if ($null -ne $Org) {
$User = Get-Mailbox -Identity $User -organization $Org
$User = Get-Recipient -Identity $User -organization $Org
Write-Host " `t `t [$($User.DisplayName)] -- $($User.PrimarySmtpAddress)"
} else {
$User = Get-Mailbox -Identity $User
$User = Get-Recipient -Identity $User
Write-Host " `t `t [$($User.DisplayName)] -- $($User.PrimarySmtpAddress)"
}
}
Expand Down

0 comments on commit 7c0dacb

Please sign in to comment.