From dba1218240619c4280a6a8afa661e5337f18689c Mon Sep 17 00:00:00 2001 From: Shane Ferrell Date: Fri, 12 Jul 2024 11:57:37 -0700 Subject: [PATCH] Change Get-MB to Get-Recipient --- Calendar/Get-RBASummary.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Calendar/Get-RBASummary.ps1 b/Calendar/Get-RBASummary.ps1 index 82884e23d5..ce26bea7b0 100644 --- a/Calendar/Get-RBASummary.ps1 +++ b/Calendar/Get-RBASummary.ps1 @@ -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)" } }