#
LAPS (Local Administrator Password Solution)
Local Administrator Password Solution (LAPS) "is a Windows feature that automatically manages and backs up the password of a local administrator account on your Microsoft Entra joined or Windows Server Active Directory-joined devices. You also can use Windows LAPS to automatically manage and back up the Directory Services Restore Mode (DSRM) account password on your Windows Server Active Directory domain controllers. An authorized administrator can retrieve the DSRM password and use it."
#
Quick install
- Create new GPO in
Group Policy Objectscalled (for example)LAPS-workstations - Go to
Computer Configuration > Policies > Administrative Templates > System > LAPS - Edit the following settings:
Name of administrator account to manage- don't actually configure this setting if you just want to admin the local named Administrator account, but if your company's local admin account is named something likettadminthen do enable this setting and specify that account.Configure password backup directory- chooseActive DirectoryPassword Settingsenable it and set the settings you like (super long/strong password, rotated aggressively, etc.)Enable Password Encryption(optional) - turn it on to encrypt passwords going across the wireConfigure size of encrypted password history(optional) - and change it to an appropriate number (max 12)
- In PowerShell, under the context of an account that's part of
Domain AdminsandSchema Admins, run:
Update-LapsADSchema -verbose
Answer A for All.
- Allow computers in OU(s) to self-reset their LAPS passwords when needed:
Set-LapsADComputerSelfPermission -Identity 'OU=ComputersAndServers,DC=tangent,DC=town'
- Run
gpoupdate /forceon the DC and then reboot LAPS-controlled systems - Use
dsa.mscto view/change LAPS passwords in the GUI, orget-lapsadpassword -identity laptop-777 -asplaintextin PowerShell.
#
Troubleshooting
If a LAPS-controlled machine isn't picking up a password, go to Event Viewer > Applications and Services Logs > Microsoft > Windows > LAPS > Operational Logs. If you see error 10066, it probably means you need to run the SetLapsADComputerSelfPermission command above.
#
Video demo
Here's a Tuesday TOOLSday video we did over at 7MinSec.club about installing LAPS in ~20 minutes: