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.
Password-stealing tools cannot read sign-in secrets from a domain controller's memory.
Anyone who gets admin rights on a DC can otherwise lift the credentials of everyone signed in.
Set RunAsPPL in a policy for the Domain Controllers OU, then restart each DC in turn.
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.
$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| Value | Meaning |
|---|---|
| 2 | On, and you can turn it off again by changing the value. Use this. |
| 1 | On and locked into the server's firmware. Much harder to undo. |
| 0 | Off. |
Apply it to every domain controller
$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={$_}} -AutoSizeEvery 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.
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
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, MessageEach 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
Every domain controller logs LSASS starting as a protected process, and staff can still sign in.


