diff --git a/Exchange-Documentation-Script-Enhanced.ps1 b/Exchange-Documentation-Script-Enhanced.ps1
index d112400..0c2ff81 100644
--- a/Exchange-Documentation-Script-Enhanced.ps1
+++ b/Exchange-Documentation-Script-Enhanced.ps1
@@ -985,8 +985,8 @@ function Export-ToHTML {
var content = element.nextElementSibling;
content.classList.toggle('show');
element.textContent = content.classList.contains('show') ?
- element.textContent.replace('▶', '▼') :
- element.textContent.replace('▼', '▶');
+ element.textContent.replace('$([char]::ConvertFromUtf32(0x25B6))', '$([char]::ConvertFromUtf32(0x25BC))') :
+ element.textContent.replace('$([char]::ConvertFromUtf32(0x25BC))', '$([char]::ConvertFromUtf32(0x25B6))');
}
@@ -1012,15 +1012,15 @@ function Export-ToHTML {
$expiringSoonCerts = $Script:ReportData["ExchangeCertificates"] | Where-Object {$_.DaysUntilExpiry -le 30 -and $_.DaysUntilExpiry -gt 0}
if ($expiredCerts.Count -gt 0) {
- $criticalAlerts += "⚠️ $($expiredCerts.Count) expired certificate(s) found"
+ $criticalAlerts += "$([char]::ConvertFromUtf32(0x26A0))$([char]::ConvertFromUtf32(0xFE0F)) $($expiredCerts.Count) expired certificate(s) found"
}
if ($expiringSoonCerts.Count -gt 0) {
- $criticalAlerts += "⚠️ $($expiringSoonCerts.Count) certificate(s) expiring within 30 days"
+ $criticalAlerts += "$([char]::ConvertFromUtf32(0x26A0))$([char]::ConvertFromUtf32(0xFE0F)) $($expiringSoonCerts.Count) certificate(s) expiring within 30 days"
}
}
- if ($criticalAlerts.Count -gt 0) {
- $htmlContent += "
🚨 Critical Alerts
"
+ if ($criticalAlerts.Count -gt 0) {
+ $htmlContent += "" + $([char]::ConvertFromUtf32(0x1F6A8)) + " Critical Alerts
"
foreach ($alert in $criticalAlerts) {
$htmlContent += "- $alert
"
}
@@ -1030,7 +1030,7 @@ function Export-ToHTML {
# Add summary statistics if available
$hasStats = $Script:ReportData.ContainsKey("MailboxStatistics") -or $Script:ReportData.ContainsKey("EXO_MailboxStatistics")
if ($hasStats) {
- $htmlContent += "📊 Summary Statistics
"
+ $htmlContent += "
" + $([char]::ConvertFromUtf32(0x1F4CA)) + " Summary Statistics
"
if ($Script:ReportData.ContainsKey("MailboxStatistics")) {
$stats = $Script:ReportData["MailboxStatistics"]
@@ -1084,7 +1084,7 @@ function Export-ToHTML {
$envBadge += "
Critical"
}
- $htmlContent += "
"
+ $htmlContent += "
"
$htmlContent += "
"
if ($data -and (($data -is [Array] -and $data.Count -gt 0) -or ($data -isnot [Array]))) {
@@ -1239,10 +1239,10 @@ function Start-ExchangeDocumentation {
$expiringSoonCerts = $Script:ReportData["ExchangeCertificates"] | Where-Object {$_.DaysUntilExpiry -le 30 -and $_.DaysUntilExpiry -gt 0}
if ($expiredCerts.Count -gt 0) {
- Write-Host "⚠️ CRITICAL: $($expiredCerts.Count) expired certificate(s) found!" -ForegroundColor Red
+ Write-Host ("$([char]::ConvertFromUtf32(0x26A0))$([char]::ConvertFromUtf32(0xFE0F)) CRITICAL: $($expiredCerts.Count) expired certificate(s) found!") -ForegroundColor Red
}
if ($expiringSoonCerts.Count -gt 0) {
- Write-Host "⚠️ WARNING: $($expiringSoonCerts.Count) certificate(s) expiring within 30 days!" -ForegroundColor Yellow
+ Write-Host ("$([char]::ConvertFromUtf32(0x26A0))$([char]::ConvertFromUtf32(0xFE0F)) WARNING: $($expiringSoonCerts.Count) certificate(s) expiring within 30 days!") -ForegroundColor Yellow
}
}