Get-Resource-Html
Exchange Online: HTML report of resource mailboxes
#Requires -Version 5.1
[CmdletBinding()]
Param()
Process {
try {
[string[]]$Properties = @('Name','IsMailboxEnabled','ProhibitSendQuota','RecipientLimits','IsShared','Database','ExchangeUserAccountControl','ExternalOofOptions')
$res = Get-Mailbox -SortBy DisplayName -ErrorAction Stop | Where-Object -Property IsResource -EQ $true | Select-Object $Properties
if ($null -eq $res -or $res.Count -eq 0) {
Write-Output "No resources found"
return
}
Write-Output ($res | ConvertTo-Html -Fragment)
}
catch { throw }
}This script has no configurable parameters.