Danny Moran

How to setup and deploy LAPS (Local Administrator Password Solution)

Published July 09, 2022 by Danny Moran

Table of Contents


This is a step-by-step guide for setting up, configuring, and deploying LAPS; Microsoft’s Local Administrator Password Solution.

How to setup and deploy LAPS (Local Administrator Password Solution) video

How to setup and deploy LAPS (Local Administrator Password Solution) guide

  1. Download laps and copy the file to the desktop of your domain controller.


  2. Run the file as Administrator and install all components.

  3. Extend the Active Directory schema by running the below two PowerShell commands:

    Import-Module AdmPwd.PS
  4. After the schema has been updated, your Active Directory computer objects should have two new attributes. ms-Mcs-AdmPwd and ms-Mcs-AdmPwdExpirationTime

  5. We need to give the computer units permission to be able to update these two new attributes. This is done by running the below command:

    Set-AdmPwdComputerSelfPermission -OrgUnit Workstations

    Note: change the OrgUnit switch value to the name of the organisational unit which houses your computer units.

  6. We now need to give certain users the ability to access these new administrator passwords that will be stored in AD. To do this, create a new security group called LAPSAdmins and then run the below command to give the new security group the permissions. Any users in this new security group will be able to view the computer administrator passwords.

    Set-AdmPwdReadPasswordPermission -Identity Workstations -AllowedPrincipals "LAPSAdmins"
  7. Now we need to use group policy to deploy the LAPS application to all computers, and copy the LAPS application to a file share which all computers can access.

  8. Using file explorer, navigate to \\LOCALDOMAINNAME\SYSVOL\LOCALDOMAINNAME\scripts and create a new folder called LAPS

  9. Copy the LAPS application into the newly created LAPS folder.

  10. Open the Group Policy Management Console.

  11. Create a new Group policy object called LAPS

  12. Open the new LAPS group policy object and navigate to Computer Configuration > Policies > Software Settings > Software installation

  13. Right-click in the software installation and create a new install.

  14. Select the installer file from \\LOCALDOMAINNAME\SYSVOL\LOCALDOMAINNAME\scripts\laps and press okay.

  15. Under Computer Configuration > Policies > Administrative Template > LAPS, configure the 4 LAPS settings.

    • Enable local admin password management
    • Password Settings
    • Do not allow password expiration time longer than required
    • Name of administrator account to manage (This setting is not required to be configured unless you have renamed the default administrator account name)
  16. Close the Group Policy Management Editor.

  17. Link the new LAPS group policy object to your Workstations OU.

Laps has now been deployed.

To test to make sure that LAPS is working, run the following command on one of the workstations.

gpupdate /force

Once group policy has been updated, restart the computer and the LAPS software should be automatically installed during the reboot phase.

After the reboot, log back into the workstation and run the below command again. This should force the local administrator password to be updated and written to Active Directory.

gpupdate /force

When the computer has finished rebooting, the updated local administrator password should have been written to the active directory computer object.