Find an Exchange User’s Resources
You can use these PowerShell commands in the Exchange Management Shell to find all the Room and Equipment mailboxes for which a particular user is a delegate:
# Gets the mailbox name from the user. $Username = Read-Host “What is the username for the mailbox?” # Assigns the mailbox to a variable called “Mailbox”. # Assigns the mailbox name to a variable called MBName # Gets a list of all Room and Equipment type mailboxes on the # Output a list of resource mailboxes for which the user is a delegate |
If you want to assign the list of resource mailboxes to a variable to use later, just modify that last line to something like this:
$ManagedResources = ($ResourceMailboxes | foreach {$resourcename = $_.Alias; `
Get-CalendarProcessing $resourcename | select -expandproperty resourcedelegates `
| foreach-object {$NameInDelList = $_.Name; if($MBName -eq $NameInDelList) `
{$resourcename}}})