Guide

Turn on LSA protection

LSASS is the Windows process that holds the passwords and tickets of everyone signed in. LSA protection stops other programs reading its memory, which is how password-stealing tools work.

20 minutes, plus a restart of each DCRun as a domain admin on CON-DC-01
What improves

Password-stealing tools cannot read sign-in secrets from a domain controller's memory.

Why it matters

Anyone who gets admin rights on a DC can otherwise lift the credentials of everyone signed in.

How you do it

Set RunAsPPL in a policy for the Domain Controllers OU, then restart each DC in turn.

Check first

If a domain controller runs a password filter or a security agent that loads into LSASS, ask its supplier whether it supports LSA protection before you start.

Create the policy

The setting lives in a Group Policy object linked to the Domain Controllers OU, so every DC gets it.

CON-DC-01
$dom = Get-ADDomain
if (-not (Get-GPO -Name 'CON-DC-Hardening' -ErrorAction SilentlyContinue)) {
    New-GPO -Name 'CON-DC-Hardening' -Comment 'Security settings for domain controllers' |
        New-GPLink -Target "OU=Domain Controllers,$($dom.DistinguishedName)" | Out-Null
}
Set-GPRegistryValue -Name 'CON-DC-Hardening' -Key 'HKLM\SYSTEM\CurrentControlSet\Control\Lsa' -ValueName 'RunAsPPL' -Type DWord -Value 2 | Out-Null
ValueMeaning
2On, and you can turn it off again by changing the value. Use this.
1On and locked into the server's firmware. Much harder to undo.
0Off.

Apply it to every domain controller

CON-DC-01
$dcs = (Get-ADDomainController -Filter *).HostName
repadmin /syncall /AdeP | Select-String 'error|terminated'
Invoke-Command -ComputerName $dcs -ScriptBlock { gpupdate /force | Out-Null }
Invoke-Command -ComputerName $dcs -ScriptBlock {
    (Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa').RunAsPPL
} | Format-Table PSComputerName, @{n='RunAsPPL';e={$_}} -AutoSize

Every DC should show 2. If one is blank or 0, the new policy has not reached it yet. Wait five minutes and run the last two commands again.

Restart one domain controller at a time

The setting takes effect when the server starts. Restart the second DC first and wait for it to come back, so one DC is always running.

CON-DC-01
Restart-Computer -ComputerName CON-DC-02 -Force -Wait -For PowerShell -Timeout 600
repadmin /replsummary

When the summary shows 0 failures, restart CON-DC-01 from its own Start menu.

Check it is on

CON-DC-01
Invoke-Command -ComputerName (Get-ADDomainController -Filter *).HostName -ScriptBlock {
    Get-WinEvent -FilterHashtable @{ LogName='System'; ProviderName='Microsoft-Windows-Wininit'; Id=12 } -MaxEvents 1 |
        Select-Object TimeCreated, Message
} | Format-List PSComputerName, TimeCreated, Message

Each DC should report LSASS.exe was started as a protected process, timed just after its restart.

Turn it off again

Set the value to 0 in the policy, run gpupdate /force on each DC and restart them one at a time.

Done when

Check

Every domain controller logs LSASS starting as a protected process, and staff can still sign in.

Your progress is kept in this browser only.