Add the LAPS attributes to Active Directory, then give computers the right to write their own password.
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.
Update-LapsADSchema
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.
$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.
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
All three commands finish without errors, and no unexpected group has rights on the workstation OUs.


