> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/ams/v1.0/configuration/deploying_features/setting-up-microsoft-laps.md).

# Setting up Microsoft LAPS

Lithnet Access Manager provides a convenient web-based interface for accessing local admin passwords generated by the Microsoft LAPS client.

This guide assumes that you have the Microsoft LAPS agent deployed and configured appropriately.

## Step 1: Delegate Microsoft LAPS password permissions

![!](https://1984618955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsBzwJDeLC2ny10RHLdI%2Fuploads%2Fgit-blob-6c81b441ac6538d0061e5eee7ab009357eee9a85%2Fui-page-localadminpasswords.png?alt=media)

You can use the Microsoft LAPS PowerShell cmdlets to delegate password read and reset permissions to the AMS service account, or use a script generated by AMS to do this for you.

From the `Local admin passwords` page, click on `Delegate Microsoft LAPS Permissions` to see a pre-built script for delegating the appropriate permissions. Simply change the `$ou` variable to the full DN on of the container than contains the computers you want to be able to access with AMS.

Copy this script and run it with an account that has either domain admin rights, or delegated control of the specified container.

## Step 2: Assign access

The final step is to create an authorization target, granting permission for your selected users and groups to access the LAPS passwords for the specified computers.

From the `Authorization` page, select `Add...` to create a new target. Select the OU you delegated permissions to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

![](https://1984618955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsBzwJDeLC2ny10RHLdI%2Fuploads%2Fgit-blob-4051e64f84befd4259247c32b6de85c6fa0ae6aa%2Fui-page-authz-lapstarget.png?alt=media)

Select `Edit Permissions...` to open the ACL editor.

![](https://1984618955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsBzwJDeLC2ny10RHLdI%2Fuploads%2Fgit-blob-bd8252796e4fcf9bae0f5cc2c1cfba89b8ff947b%2Fui-page-authz-editsecurity-laps.png?alt=media)

Note that Microsoft LAPS does not support storing of LAPS history, so granting that permission will not have any effect.

You can optionally choose to expire the local admin password a period of time after it has been accessed. This will cause the LAPS agent to generate a new password *after* its next check-in time. It may be up to 90 minutes after the time you specify.

If you'd like to be notified when someone accesses a LAPS password, select the notification channels you'd like to send to for success and failure events.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lithnet.io/ams/v1.0/configuration/deploying_features/setting-up-microsoft-laps.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
