Step 1

Prepare Active Directory

Add the LAPS attributes to Active Directory, then give computers the right to write their own password.

10 minutesNeeds Schema Admins for step 1

Extend the schema

This adds the fields that hold the password and its expiry date to every computer object. Run it once for the forest.

A domain controller
Update-LapsADSchema
You cannot undo a schema change

It is safe and Microsoft supports it, but it cannot be removed. The built-in Administrator account is in Schema Admins by default. Other accounts need adding first.

Let PCs store their passwords

Each computer needs permission to write to its own LAPS fields. Grant it on the OUs that hold your PCs.

A domain controller
$top = "OU=Contoso School,DC=ad,DC=contoso,DC=com"
Set-LapsADComputerSelfPermission -Identity "OU=CON-Staff-Devices,OU=CON-Workstations,$top"
Set-LapsADComputerSelfPermission -Identity "OU=CON-Student-Devices,OU=CON-Workstations,$top"

Check who can read passwords

Look for groups that already have read rights on those OUs. Anyone listed could read a PC's admin password.

A domain controller
Find-LapsADExtendedRights -Identity "OU=CON-Workstations,$top" | Format-List

You should see only NT AUTHORITY\SYSTEM and Domain Admins. Remove anything you did not expect.

Done when

Check

All three commands finish without errors, and no unexpected group has rights on the workstation OUs.

Your progress is kept in this browser only.