$Databases = Get-MailboxDatabase -status
$htmlReporte = @"
"@
$htmlReporte = @"
$htmlReporte
<tr><td>Base de Datos</td><td>Tamaño</td><td>Espacio disponible recuperable</td></tr>
"@
foreach ($db in $databases) {
$aux0=$db.Name
$aux1=$db.databasesize
$aux2=$db.availablenewmailboxspace
$htmlReporte = @"
$htmlReporte
<tr><td>$aux0</td><td>$aux1</td><td>$aux2</td></tr>
"@
}
$body = @"
<center><h1><b>Informacion de Bases de Exchange</h1><br></center>
<br>
<table border="2">
$htmlReporte
</table>
<br>
Desde ya es un placer chequear esta característica, para ayudarle a brindar un mejor servicio IT.<br>
<br>
Saludos cordiales,<br>
"@
convertTo-HTML -body $body | Out-File c:\ReporteExchangeDB.html
$htmlReporte = @"
"@
$htmlReporte = @"
$htmlReporte
<tr><td>Base de Datos</td><td>Tamaño</td><td>Espacio disponible recuperable</td></tr>
"@
foreach ($db in $databases) {
$aux0=$db.Name
$aux1=$db.databasesize
$aux2=$db.availablenewmailboxspace
$htmlReporte = @"
$htmlReporte
<tr><td>$aux0</td><td>$aux1</td><td>$aux2</td></tr>
"@
}
$body = @"
<center><h1><b>Informacion de Bases de Exchange</h1><br></center>
<br>
<table border="2">
$htmlReporte
</table>
<br>
Desde ya es un placer chequear esta característica, para ayudarle a brindar un mejor servicio IT.<br>
<br>
Saludos cordiales,<br>
"@
convertTo-HTML -body $body | Out-File c:\ReporteExchangeDB.html