Security

Windows LAPS in Active Directory: Getting Started

Published November 20, 2026

Diagram of an Active Directory domain tree showing parent and child domains.
Photo: 小朱 / Wikimedia Commons, Public domain

Shared local administrator passwords are one of the most common ways attackers move sideways through a network. Windows LAPS (Local Administrator Password Solution) gives every computer its own local administrator password, changes it on a schedule, and stores it in Active Directory where only authorised people can read it.

What you need

  • A functioning Active Directory domain with a schema that can be extended.
  • Domain controllers running a supported Windows Server version.
  • A RSAT or Windows Server management computer with the Group Policy Management tools and the LAPS PowerShell module.
  • Enterprise Admin or Schema Admin rights for the one-time schema update.

Step 1. Extend the AD schema (once per forest)

Run this from a management computer as a Schema Admin:

Update-LapsADSchema

The command adds the attributes LAPS needs. It is a one-way change, so run it once per forest, after you have checked that the forest and domain functional levels are supported.

Step 2. Grant computers permission to write their password

Set-LapsADComputerSelfPermission -Identity "OU=Workstations,DC=example,DC=local"

Replace the distinguished name with the OU that contains the computers you want to manage. Computers can then update only their own password attributes.

Step 3. Create a Group Policy for LAPS

In Group Policy Management, create a GPO linked to that OU and open Computer Configuration → Policies → Administrative Templates → System → LAPS. Set at least:

  • Configure password backup directory: Active Directory.
  • Password Settings: a complex password of 20 characters or more, and a rotation age you can justify, such as 30 days.
  • Name of administrator account to manage: leave it empty to use the built-in Administrator account, or set a specific local account if you use a renamed one.

Step 4. Verify on a client

On a test computer, run gpupdate /force, then check that the password attributes are written to the computer object in Active Directory. Use the Attribute Editor in Active Directory Users and Computers, or run:

Get-LapsADPassword -Identity "PC-001" -AsPlainText

Access to that command should be limited to a dedicated helpdesk group. Do not give it to every administrator.

Common mistakes

  • Forgetting to run the schema update, so the policy applies but nothing is stored.
  • Using a password length or complexity the client cannot meet, which causes the rotation to fail silently.
  • Granting read access to the password attribute to too many groups.

Record which OUs are covered and who has permission to read passwords. Review that list every quarter.

Sources