Windows Exchange Cleanup Logs

Exchange Server writes a surprising amount of logging: IIS logs, HTTP proxy logs, diagnostic performance logs and search traces easily add tens of gigabytes per server, and a full system drive takes the whole mail system down with it. These are not the database transaction logs, and they can be removed safely, as long as you keep enough history to investigate an incident.

This post gives you a safe, scheduled cleanup script with per-folder retention and a dry-run mode, shows which logs Exchange already manages itself, and then collects the practical admin tasks I keep coming back to: health checks, maintenance mode for DAG members, certificates, queues, message tracking, mailbox reports and security checks.

The cleanup idea comes from Ali Tajran’s script, extended for retention per log type, IIS log paths read from IIS itself, -WhatIf, and a log of what was deleted.

Written for: Exchange Server Subscription Edition (SE) and Exchange Server 2019, which share the same file layout (V15). Exchange 2016 works the same. Run everything in an elevated Exchange Management Shell on the Exchange server, unless a section says otherwise.


Table of contents

  1. Where you stand: versions and support
  2. What fills the disk
  3. How long to keep logs
  4. The cleanup script
  5. Run it daily as a scheduled task
  6. Logs Exchange manages itself
  7. Database transaction logs: hands off
  8. Health checks
  9. Maintenance mode for DAG members
  10. Certificates
  11. Queues and message tracking
  12. Mailbox and database reports
  13. Security housekeeping
  14. Checklist

1. Where you stand: versions and support

Exchange 2016 and 2019 reached end of support on 14 October 2025. Exchange Server Subscription Edition (SE) is the supported on-premises version: it’s built from Exchange 2019 CU15, upgrades in place from 2019 CU14/CU15, and runs on Windows Server 2019, 2022 and 2025 (Server Core recommended). If you still run 2016 or 2019, moving to SE is the most important housekeeping item on this page.

The exact build, including the security update (SU), comes from ExSetup.exe, not from Get-ExchangeServer (which doesn’t show SUs):

Get-ExchangeServer | ForEach-Object {
    Invoke-Command -ComputerName $_.Name -ScriptBlock {
        $exe = Join-Path $env:ExchangeInstallPath 'Bin\ExSetup.exe'
        [pscustomobject]@{ Server = $env:COMPUTERNAME; Build = (Get-Item $exe).VersionInfo.ProductVersion }
    }
} | Format-Table -AutoSizeCode language: PHP (php)

Compare the build with Microsoft’s Exchange Server build numbers and release dates page. For example, 15.2.2562.57 is Exchange SE RTM with the November 2026 SU.


2. What fills the disk

FolderContentsSafe to clean?
C:\inetpub\logs\LogFiles\W3SVC*IIS request logs for OWA, ECP, EWS, ActiveSync, MAPI, AutodiscoverYes, after your retention period
…\V15\Logging\HttpProxy\Every client request as it passes the front endYes, after your retention period. Key evidence after an attack
…\V15\Logging\Diagnostics\Daily performance logs (*.blg), managed availability tracesYes
…\V15\Logging\… (other folders)RPC client access, EWS, MAPI, ActiveSync, setup, auth certificate monitoring logsYes
…\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\ and \Logs\Search engine tracesYes, can be short
…\V15\TransportRoles\Logs\Message tracking, protocol and connectivity logsNo: Exchange rotates these itself (section 6)
Database and log folders (*.edb, E*.log)The mailbox databases and their transaction logsNever by hand (section 7)

…\V15\ is the Exchange install folder, C:\Program Files\Microsoft\Exchange Server\V15\ by default. Exchange stores the actual path in the environment variable $env:ExchangeInstallPath, which the script uses instead of a hard-coded path.

See how much each folder uses before you start:

$ex = $env:ExchangeInstallPath
'Logging', 'Bin\Search\Ceres\Diagnostics', 'TransportRoles\Logs' | ForEach-Object {
    $p = Join-Path $ex $_
    [pscustomobject]@{
        Folder = $p
        GB     = [math]::Round((Get-ChildItem $p -Recurse -File -ErrorAction SilentlyContinue |
                                Measure-Object Length -Sum).Sum / 1GB, 2)
    }
} | Format-Table -AutoSizeCode language: PHP (php)

3. How long to keep logs

Deleting logs after two days frees the most space, but it also destroys the evidence you need after a compromise. The large Exchange attacks of recent years (ProxyLogon, ProxyShell, ProxyNotShell) were found and scoped through the IIS and HttpProxy logs, often weeks after the first intrusion.

Log typeRecommended retention on the server
IIS logs30 days, longer if you don’t forward them to a SIEM
Exchange Logging (includes HttpProxy)30 days
Search ETL traces7 days

If you forward IIS and HttpProxy logs to a SIEM or log server, you can shorten the local retention. If you don’t, size the disk for 30 days rather than deleting sooner.


4. The cleanup script

Save as C:\Scripts\Invoke-ExchangeLogCleanup.ps1:

<#
.SYNOPSIS
    Deletes old Exchange diagnostic logs, search traces and IIS logs.
    Never touches mailbox databases, transaction logs or transport logs.
.EXAMPLE
    .\Invoke-ExchangeLogCleanup.ps1 -WhatIf       # show what would be deleted
    .\Invoke-ExchangeLogCleanup.ps1               # delete with the default retention
#>
[CmdletBinding(SupportsShouldProcess)]
param(
    [ValidateRange(7, 3650)] [int]$IisDays      = 30,
    [ValidateRange(7, 3650)] [int]$ExchangeDays = 30,
    [ValidateRange(1, 3650)] [int]$EtlDays      = 7,
    [string]$ReportDir = "$env:ProgramData\ExchangeLogCleanup"
)

$ErrorActionPreference = 'Stop'
if (-not $env:ExchangeInstallPath) { throw 'ExchangeInstallPath is not set. Run this on an Exchange server.' }
$ex = $env:ExchangeInstallPath

New-Item -ItemType Directory -Force -Path $ReportDir | Out-Null
$report = Join-Path $ReportDir ("cleanup-{0:yyyyMMdd-HHmm}.log" -f (Get-Date))
function Write-Report([string]$Text) {
    $line = '{0:yyyy-MM-dd HH:mm:ss}  {1}' -f (Get-Date), $Text
    Write-Verbose $line
    Add-Content -Path $report -Value $line
}

# IIS log folders, read from IIS itself instead of assuming C:\inetpub
Import-Module WebAdministration
$iisDirs = Get-Website | ForEach-Object {
    [Environment]::ExpandEnvironmentVariables($_.logFile.directory)
} | Sort-Object -Unique

$targets = @(
    foreach ($d in $iisDirs) {
        [pscustomobject]@{ Path = $d; Days = $IisDays; Ext = @('.log') }
    }
    [pscustomobject]@{ Path = Join-Path $ex 'Logging';                                 Days = $ExchangeDays; Ext = @('.log', '.blg', '.etl') }
    [pscustomobject]@{ Path = Join-Path $ex 'Bin\Search\Ceres\Diagnostics\ETLTraces'; Days = $EtlDays;      Ext = @('.etl') }
    [pscustomobject]@{ Path = Join-Path $ex 'Bin\Search\Ceres\Diagnostics\Logs';      Days = $EtlDays;      Ext = @('.log', '.etl') }
)

$total = 0; $totalBytes = 0; $skipped = 0
foreach ($t in $targets) {
    if (-not (Test-Path -LiteralPath $t.Path)) { Write-Report "MISSING  $($t.Path)"; continue }

    $cutoff = (Get-Date).AddDays(-$t.Days)
    $files  = Get-ChildItem -LiteralPath $t.Path -Recurse -File -ErrorAction SilentlyContinue |
              Where-Object { $t.Ext -contains $_.Extension.ToLower() -and $_.LastWriteTime -lt $cutoff }

    $n = 0; $bytes = 0
    foreach ($f in $files) {
        if ($PSCmdlet.ShouldProcess($f.FullName, 'Delete')) {
            try {
                Remove-Item -LiteralPath $f.FullName -Force
                $n++; $bytes += $f.Length
            } catch {
                $skipped++      # file in use; it will go next run
            }
        }
    }
    Write-Report ("{0,6} files  {1,8:N2} GB  older than {2,3} days  {3}" -f $n, ($bytes / 1GB), $t.Days, $t.Path)
    $total += $n; $totalBytes += $bytes
}

Write-Report ("TOTAL  {0} files, {1:N2} GB deleted, {2} in use and skipped" -f $total, ($totalBytes / 1GB), $skipped)

# Keep 90 days of our own reports
Get-ChildItem -LiteralPath $ReportDir -Filter 'cleanup-*.log' |
    Where-Object LastWriteTime -lt (Get-Date).AddDays(-90) |
    Remove-Item -ForceCode language: PHP (php)

What makes it safe:

  • Only known folders and only log file types (.log, .blg, .etl). Databases, E*.log transaction logs and transport logs live in other folders and are never in the list.
  • Retention per log type, with lower limits enforced by ValidateRange: nobody accidentally runs it with -IisDays 0.
  • -WhatIf shows exactly what would be deleted, without deleting anything.
  • IIS log paths come from IIS, so a log folder moved to another drive is still found.
  • Files in use are skipped and counted, not hidden: a skipped file is deleted on the next run.
  • Every run writes a report to C:\ProgramData\ExchangeLogCleanup.

The script doesn’t change the PowerShell execution policy. Changing a machine-wide security setting from inside a cleanup script is a bad habit; the scheduled task passes the policy for that one run instead.

Try it first:

cd C:\Scripts
.\Invoke-ExchangeLogCleanup.ps1 -WhatIf
.\Invoke-ExchangeLogCleanup.ps1 -VerboseCode language: CSS (css)

5. Run it daily as a scheduled task

$action  = New-ScheduledTaskAction -Execute 'powershell.exe' `
           -Argument '-NoProfile -NonInteractive -ExecutionPolicy Bypass -File C:\Scripts\Invoke-ExchangeLogCleanup.ps1'
$trigger = New-ScheduledTaskTrigger -Daily -At 03:15
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit (New-TimeSpan -Hours 2) -StartWhenAvailable
Register-ScheduledTask -TaskName 'Exchange log cleanup' -Action $action -Trigger $trigger -Settings $settings `
    -User 'SYSTEM' -RunLevel Highest -Force

Start-ScheduledTask -TaskName 'Exchange log cleanup'
Get-ScheduledTaskInfo -TaskName 'Exchange log cleanup' | Select-Object LastRunTime, LastTaskResultCode language: PHP (php)

LastTaskResult 0 means success. The script doesn’t load the Exchange snap-in, so SYSTEM can run it without an Exchange admin account.

Protect the script itself: only administrators should be able to change it, since it runs as SYSTEM every night.

icacls C:\Scripts /inheritance:r /grant:r 'SYSTEM:(OI)(CI)F' 'Administrators:(OI)(CI)F'Code language: JavaScript (javascript)

6. Logs Exchange manages itself

The transport logs under TransportRoles\Logs have built-in age and size limits. Change those limits instead of deleting files.

Current settings:

Get-TransportService | Format-List Name, MessageTrackingLogMaxAge, MessageTrackingLogMaxDirectorySize,
    ReceiveProtocolLogMaxAge, SendProtocolLogMaxAge, ConnectivityLogMaxAgeCode language: PHP (php)

Message tracking is what you search when a user asks where an email went. 30 days (the default) is often too short; 90 days costs little space:

Get-TransportService | Set-TransportService -MessageTrackingLogMaxAge 90.00:00:00 -MessageTrackingLogMaxDirectorySize 10GBCode language: JavaScript (javascript)

Protocol logs (the SMTP conversation of each connection) are only written for connectors with ProtocolLoggingLevel Verbose. They’re invaluable for troubleshooting mail flow with a specific partner:

Get-ReceiveConnector | Format-Table Identity, ProtocolLoggingLevel
Get-TransportService | Set-TransportService -ReceiveProtocolLogMaxAge 30.00:00:00 -SendProtocolLogMaxAge 30.00:00:00Code language: JavaScript (javascript)

7. Database transaction logs: hands off

Transaction logs (E00000012AB.log and friends, next to the databases) are part of the database. Never delete them by hand: a database with missing logs may not mount, and in a DAG you break the copies.

Logs are truncated automatically after a successful full or incremental backup with an Exchange-aware (VSS) backup product. If log volumes keep growing, the backup isn’t working:

Get-MailboxDatabase -Status | Format-Table Name, LastFullBackup, LastIncrementalBackup, CircularLoggingEnabled -AutoSize

A LastFullBackup more than a day or two old is the problem to fix.

Circular logging truncates logs without a backup. Only use it in a lab, or in a DAG with three or more copies and a deliberate “no backup” design. On a standalone server it means you can only restore to the last full backup.


8. Health checks

Exchange HealthChecker

Microsoft’s HealthChecker script checks build, security updates, OS settings, .NET, TLS, certificates, Extended Protection and dozens of known issues, and writes an HTML report. Run it after every update and once a month:

Invoke-WebRequest https://github.com/microsoft/CSS-Exchange/releases/latest/download/HealthChecker.ps1 -OutFile C:\Scripts\HealthChecker.ps1 -UseBasicParsing
cd C:\Scripts
.\HealthChecker.ps1 -Server (Get-ExchangeServer).Name
.\HealthChecker.ps1 -BuildHtmlServersReportCode language: JavaScript (javascript)

Open ExchangeAllServersReport-*.html. Red items are real problems; yellow items deserve a look.

Quick daily checks

# Services that should run and don't
Get-ExchangeServer | ForEach-Object { Test-ServiceHealth -Server $_.Name } |
    Where-Object { $_.ServicesNotRunning } | Format-List Role, ServicesNotRunning

# Server components that aren't Active (left in maintenance?)
Get-ExchangeServer | ForEach-Object { Get-ServerComponentState -Identity $_.Name } |
    Where-Object State -ne 'Active' | Format-Table Identity, Component, State

# Managed availability: anything unhealthy
Get-ExchangeServer | ForEach-Object { Get-HealthReport -Identity $_.Name } |
    Where-Object AlertValue -ne 'Healthy' | Format-Table Server, HealthSet, AlertValue

# DAG copies and replication
Get-MailboxDatabaseCopyStatus * | Format-Table Name, Status, CopyQueueLength, ReplayQueueLength, ContentIndexState -AutoSize
Get-DatabaseAvailabilityGroup | ForEach-Object { $_.Servers } | ForEach-Object { Test-ReplicationHealth -Identity $_ } |
    Where-Object Result -ne 'Passed'

# Can every database be logged on to?
Get-MailboxDatabase | Test-MAPIConnectivity | Format-Table Database, Result, LatencyCode language: PHP (php)

Healthy means: no services missing, all components Active, copies Mounted or Healthy with queue lengths near 0, every replication test Passed.


9. Maintenance mode for DAG members

Before patching or rebooting a DAG member, move everything off it cleanly. With EX01 as the server to service and EX02 as a server that takes its mail:

Enter maintenance

$srv = 'EX01'; $target = 'EX02.mydomain.local'

# 1. Stop accepting new mail, hand queued mail to another server
Set-ServerComponentState $srv -Component HubTransport -State Draining -Requester Maintenance
Invoke-Command -ComputerName $srv { Restart-Service MSExchangeTransport, MSExchangeFrontEndTransport }
Redirect-Message -Server $srv -Target $target -Confirm:$false

# 2. Move active databases away and block new activations
Invoke-Command -ComputerName $srv { Suspend-ClusterNode -Name $env:COMPUTERNAME }
Set-MailboxServer $srv -DatabaseCopyActivationDisabledAndMoveNow $true
(Get-MailboxServer $srv).DatabaseCopyAutoActivationPolicy      # note this value for later
Set-MailboxServer $srv -DatabaseCopyAutoActivationPolicy Blocked

# 3. Wait until no database is mounted on this server
Get-MailboxDatabaseCopyStatus -Server $srv | Where-Object Status -eq 'Mounted'

# 4. Take the whole server offline for clients
Set-ServerComponentState $srv -Component ServerWideOffline -State Inactive -Requester MaintenanceCode language: PHP (php)

Check that the queues on EX01 are empty (Get-Queue -Server EX01), apart from Poison and Shadow queues. Then patch and reboot.

Leave maintenance

$srv = 'EX01'

Set-ServerComponentState $srv -Component ServerWideOffline -State Active -Requester Maintenance
Invoke-Command -ComputerName $srv { Resume-ClusterNode -Name $env:COMPUTERNAME }
Set-MailboxServer $srv -DatabaseCopyAutoActivationPolicy Unrestricted    # or the value you noted
Set-MailboxServer $srv -DatabaseCopyActivationDisabledAndMoveNow $false
Set-ServerComponentState $srv -Component HubTransport -State Active -Requester Maintenance
Invoke-Command -ComputerName $srv { Restart-Service MSExchangeTransport, MSExchangeFrontEndTransport }

Get-ServerComponentState $srv | Where-Object State -ne 'Active'          # must return nothingCode language: PHP (php)

When all servers are back, put every database on its preferred server again:

& "$env:ExchangeInstallPath\Scripts\RedistributeActiveDatabases.ps1" -DagName DAG01 -BalanceDbsByActivationPreference -Confirm:$falseCode language: JavaScript (javascript)

10. Certificates

Third-party certificates (IIS and SMTP)

Expiring certificates are the most avoidable Exchange outage there is. List what expires in the next 60 days:

Get-ExchangeServer | ForEach-Object { Get-ExchangeCertificate -Server $_.Name } |
    Where-Object { $_.NotAfter -lt (Get-Date).AddDays(60) } |
    Format-Table PSComputerName, Thumbprint, Subject, NotAfter, Services -AutoSizeCode language: JavaScript (javascript)

After importing a renewed certificate on every server, assign it to IIS and SMTP:

Enable-ExchangeCertificate -Server EX01 -Thumbprint <new thumbprint> -Services IIS, SMTPCode language: HTML, XML (xml)

Confirm the SMTP default certificate replacement when asked. Remove the old certificate only after the new one works everywhere, including hybrid connectors and load balancers that re-encrypt.

The Auth certificate (OAuth)

Exchange signs OAuth tokens with the Microsoft Exchange Server Auth Certificate, a self-signed certificate valid for five years. When it expires, OWA and ECP logins break, and hybrid features stop working. Microsoft’s MonitorExchangeAuthCertificate.ps1 checks it and renews it in time (when the current one has less than 60 days left):

Invoke-WebRequest https://github.com/microsoft/CSS-Exchange/releases/latest/download/MonitorExchangeAuthCertificate.ps1 -OutFile C:\Scripts\MonitorExchangeAuthCertificate.ps1 -UseBasicParsing
cd C:\Scripts
.\MonitorExchangeAuthCertificate.ps1                                         # check only
.\MonitorExchangeAuthCertificate.ps1 -ValidateAndRenewAuthCertificate $true   # check and renew if neededCode language: PHP (php)

Let it run itself as a scheduled task, so you never think about it again:

.\MonitorExchangeAuthCertificate.ps1 -ConfigureScriptToRunViaScheduledTask -Password (Get-Credential).PasswordCode language: CSS (css)

In a hybrid setup, run the Hybrid Configuration Wizard again after the Auth certificate has been replaced.


11. Queues and message tracking

Queues

Get-ExchangeServer | ForEach-Object { Get-Queue -Server $_.Name } |
    Where-Object MessageCount -gt 0 |
    Format-Table Identity, DeliveryType, Status, MessageCount, NextHopDomain, LastError -AutoSizeCode language: JavaScript (javascript)

LastError usually explains a stuck queue: DNS, a refused connection, a TLS problem at the other side. After fixing the cause:

Retry-Queue -Identity 'EX01\12345' -Resubmit $true
Get-Message -Queue 'EX01\12345' | Format-Table FromAddress, Recipients, Subject, LastErrorCode language: JavaScript (javascript)

Message tracking

“Did the mail from the supplier arrive?”:

Get-ExchangeServer | ForEach-Object {
    Get-MessageTrackingLog -Server $_.Name -Start (Get-Date).AddDays(-2) -Sender 'invoices@supplier.example' -ResultSize Unlimited
} | Sort-Object Timestamp |
    Format-Table Timestamp, EventId, Source, Recipients, MessageSubject -AutoSizeCode language: JavaScript (javascript)

Useful EventId values: RECEIVE (accepted), DELIVER (in the mailbox), SEND (handed to another server), FAIL (bounced), AGENTINFO (seen by an agent, such as anti-spam).

Everything one user sent in the last day:

Get-MessageTrackingLog -Sender user@mydomain.local -EventId SEND -Start (Get-Date).AddDays(-1) -ResultSize Unlimited |
    Select-Object Timestamp, Recipients, MessageSubjectCode language: JavaScript (javascript)

12. Mailbox and database reports

Largest mailboxes

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics |
    Sort-Object TotalItemSize -Descending |
    Select-Object -First 25 DisplayName,
        @{ n = 'SizeGB'; e = { [math]::Round($_.TotalItemSize.Value.ToBytes() / 1GB, 2) } },
        ItemCount, LastLogonTime |
    Format-Table -AutoSizeCode language: JavaScript (javascript)

Add | Export-Csv C:\Reports\mailboxes.csv -NoTypeInformation -Encoding UTF8 instead of Format-Table for a spreadsheet. .Value.ToBytes() works in the Exchange Management Shell on the server; in a remote PowerShell session the size arrives as text instead.

Database size and free space

Get-MailboxDatabase -Status | Sort-Object Name |
    Format-Table Name, Server, DatabaseSize, AvailableNewMailboxSpace, Mounted -AutoSizeCode language: JavaScript (javascript)

AvailableNewMailboxSpace is the empty space inside the database file, which Exchange reuses for new data. To actually shrink a database, don’t run an offline defrag (eseutil /d): create a new database and move the mailboxes. The moves run online and the old database can be removed afterwards.

Clean up after mailbox moves

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest -Confirm:$false
Get-MoveRequest | Where-Object Status -ne 'Completed' | Get-MoveRequestStatistics |
    Format-Table DisplayName, Status, PercentComplete, BadItemsEncounteredCode language: JavaScript (javascript)

Who can open whose mailbox

Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission |
    Where-Object { -not $_.IsInherited -and $_.User -notlike 'NT AUTHORITY\SELF' -and $_.AccessRights -contains 'FullAccess' } |
    Format-Table Identity, User, AccessRights -AutoSizeCode language: PHP (php)

Review it now and then: Full Access granted “temporarily” tends to stay forever.

Disconnected mailboxes

Get-MailboxDatabase | ForEach-Object { Get-MailboxStatistics -Database $_ } |
    Where-Object DisconnectReason |
    Format-Table DisplayName, Database, DisconnectReason, DisconnectDateCode language: JavaScript (javascript)

Disconnected mailboxes stay for the database’s deleted-mailbox retention (30 days by default), and can be reconnected with Connect-Mailbox until then.


13. Security housekeeping

Exchange is one of the most attacked products on any network. The essentials:

  • Install every security update in the month it’s released. Each SU is cumulative for the CU it belongs to. HealthChecker tells you whether you’re current.
  • Keep the built-in protections on. Certificate signing of PowerShell serialization payloads has been on by default since the November 2023 SU, and Extended Protection since Exchange 2019 CU14. HealthChecker reports both. If you turned one off to work around a problem, turn it back on.
  • AMSI integration lets Microsoft Defender (or another AMSI-capable antivirus) inspect requests to Exchange before they’re processed. Scanning of request bodies is available since the November 2024 SU, but has to be switched on; Microsoft’s documentation on AMSI body scanning shows the setting override.
  • Don’t publish the admin center (/ecp) or remote PowerShell (/powershell) to the internet. Block them on the reverse proxy or firewall in front of Exchange; admins connect from the internal network or a VPN.
  • Antivirus exclusions must follow Microsoft’s list exactly, and only that list. Too few exclusions corrupt databases; too many leave folders unscanned that attackers like to use.
  • Forward IIS, HttpProxy and Windows Security logs to a SIEM or central log server, so an attacker who gets in can’t erase their traces, and so the cleanup script can’t either.

14. Checklist

  • ☐ Running Exchange SE, or a migration to it is planned
  • ☐ Current security update installed; HealthChecker report without red items
  • ☐ Cleanup script tested with -WhatIf, scheduled daily as SYSTEM, reports in C:\ProgramData\ExchangeLogCleanup
  • ☐ IIS and Exchange logs kept 30 days (or forwarded to a SIEM)
  • ☐ Message tracking kept 90 days; protocol logging verbose on important connectors
  • ☐ Transaction logs truncated by backups; LastFullBackup recent on every database
  • ☐ All server components Active; no server left in maintenance mode
  • ☐ Certificates checked for expiry; Auth certificate monitored by Microsoft’s script
  • ☐ /ecp and /powershell not reachable from the internet
  • ☐ Full Access permissions reviewed