> This is part 1 of 10 of the full documentation (pages 1–100 of 966).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.lithnet.io/llms-full.txt/1
> Page index: https://docs.lithnet.io/llms.txt

# 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
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lithnet.io/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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

---

# Lithnet Docs Hub

Product documentation, setup guides, and support resources from Lithnet

Welcome to the Lithnet documentation hub. Here you'll find installation guides, configuration walkthroughs, troubleshooting resources, and reference documentation for all Lithnet products.

## Access Manager

Access Manager helps you eliminate permanent administrative access to your workstations and servers. Instead of granting standing privileges, users request access through a web app — retrieving LAPS passwords, activating just-in-time admin group membership, or looking up BitLocker recovery keys — with every request authorized, audited, and time-limited.

Its RapidLAPS feature integrates with the Windows logon screen, letting authorized users log in with the LAPS account by scanning a QR code or entering a PIN — without ever typing or seeing the password. Cross-platform agents extend LAPS management to Linux and macOS.

Access Manager is available in Community (free) and Enterprise editions.

## What you'll find in the docs

* [**Getting started guide**](/ams/installation/getting-started) — installation, choosing a LAPS agent, and configuring your first features
* [**Feature setup guides**](/ams/configuration/deploying-features) — step-by-step walkthroughs for RapidLAPS, LAPS, JIT access, and BitLocker recovery
* [**Authentication setup**](/ams/help-and-support/application-help-pages/app-configuration/authentication-page) — configuring Entra ID, Okta, ADFS, smart cards, and Windows integrated auth
* [**Quick start guides**](/ams/help-and-support/quick-start) — fast-track setup for the most common scenarios
* [**Troubleshooting**](/ams/help-and-support/troubleshooting) — log files, common issues, and support articles
* [**PowerShell reference**](/ams/help-and-support/powershellmodule) — cmdlets for managing authorization rules and configuration
* [**What's new**](/ams/whats-new-in-v3.1) — features and changes in the latest release

[**Browse Access Manager docs →**](https://docs.lithnet.io/ams/)

## Password Protection for Active Directory

Password Protection enhances Active Directory password policy by checking passwords at change time against breached password databases, custom ban lists, and configurable complexity rules. It runs entirely on your domain controllers — passwords never leave your environment, and no additional servers or internet connectivity are required.

### What you'll find in the docs

* Installation and configuration guides
* Setting up breached password detection with Have I Been Pwned
* Configuring banned words, regex rules, and length-based complexity
* Auditing existing passwords in your directory
* Group Policy configuration reference

[**Browse Password Protection docs →**](https://docs.lithnet.io/password-protection/)

## Open Source

Most Lithnet tools are open source under the MIT license. Beyond our flagship products, we maintain a collection of tools for Microsoft Identity Manager — PowerShell modules, management agents for Google Workspace and Okta, automated run profile scheduling, and more.

Browse all projects at [github.com/lithnet](https://github.com/lithnet). Community contributions, bug reports, and feature requests are welcome.

## Getting Help

{% hint style="info" %}
Community users are supported through GitHub. Search the existing [issues](https://github.com/lithnet/access-manager/issues) or create a new one if you can't find an answer in the docs. Enterprise edition customers have access to direct support from Lithnet.
{% endhint %}


# Home

<picture><source srcset="https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-c893d21dd1fa0dc9bee16c875ed16e9f0b460820%2FAccess%20Manager%20-%20Dark%20-%20No%20Border.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-6fea344e7b8c8c19103fe60f957f00aab8579e61%2Faccess-manager-logo.png?alt=media" alt="" width="375"></picture>

Lithnet Access Manager allows you to safely delegate sensitive administrative access to computers in your organization in a modern and user-friendly way. Our goals are to help you deploy best practice security solutions like LAPS and just-in-time (JIT) access, while minimizing the friction usually associated with deploying such tools.

Access Manager can help reduce the likelihood and impact of a wide-spread compromise in your environment by enabling you to effectively replace permanent administrative access to your workstations and servers.

### Usability front-and-centre, without compromising security

Every organization struggles to find the right balance between security and usability. At Lithnet, we believe that for security solutions to be successful, they must retain a high level of usability. If the scales tip too far, organizational resistance increases, and adoption failure becomes a real risk.

While LAPS on its own helps provide best-in-class protection against lateral movement attacks, we all know LAPS passwords are painful to use. We humans aren't great at remembering or typing out long and complicated passwords. Getting those LAPS passwords also requires the use of heavy-weight tools such as the *Active Directory Users and Computers* console, which isn't always an option out in the field.

We've designed a product that does not require you to make any compromises with security, while drastically improving usability. Lithnet Access Manager helps bring things back into balance - providing best-in-class security, with an uncompromising user experience.

#### RapidLAPS brings a passwordless login experience to LAPS

What if you could get all the security benefits of LAPS, without ever having to enter a LAPS password?

Access Manager provides a new feature called RapidLAPS. It's a passwordless LAPS experience, that integrates directly with the Windows logon screen. It allows authorized users to login using the LAPS account, by simply scanning a QR code or entering a PIN.

This means you can log into the LAPS account, without ever having to type or even know the LAPS password!

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-6ec38e33eecc633a5655482e9dccbd7e22461331%2FRapidLAPS_Login.gif?alt=media)

It also integrates with the Windows admin elevation prompt (run as administrator), allowing you to review and approve the app and user requesting administrative access.

#### Access Manager makes LAPS passwords easy to get to

While RapidLAPS works in the most common scenarios, there will be times when you need to access the LAPS password directly. In this case, Access Manager makes it as easy as possible.

Whether you are using Microsoft legacy LAPS, new Windows LAPS, or the Access Manager Agent, your LAPS passwords are always available via a single mobile-friendly, web-based app. Simply type in the computer name and Access Manager will find the password and present it. Whether the LAPS password is stored in Active Directory, Microsoft Entra, or AMS itself, the process is seamless to the user.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-515ca2a161eae231658160372972d0e626757bbc%2Fweb-request-laps.gif?alt=media)

We use specific fonts so you can actually see the difference between a lower-case L and a capital I. We also show a breakdown of the password using the NATO phonetic alphabet to make it easy to read out to someone. You can even have Access Manager read the password with its text-to-speech capability!

#### Use LAPS passphrases, instead of passwords

If you do have to use the LAPS passwords, wouldn't it be great if they were passphrases, instead of passwords?

You can use Access Manager to manage your LAPS passwords, instead of the Microsoft agent. So now, you can generate passphrases, instead of random complex and difficult to comprehend passwords for the managed LAPS account.

Passphrases are generated from word lists you provide, making them fully customizable to your organizations needs.

#### Self-service just-in-time access to computers

There are some cases, such as accessing servers, where LAPS isn't suitable, and users need to be members of the local administrators group, using their own credentials.

Rather than granting users permanent access to these computers, now you can grant them self-service, just-in-time access to those computers.

Using the same web interface, they request JIT access to a computer, and their account is added to the local administrators group of the computer. This access is temporary and automatically removed after the allowed time period.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-ce9db2fe536d216aa05db4d9ceb48ca1c5de6527%2Fweb-request-jit.gif?alt=media)

#### Just-in-time access to custom roles

It's not just computers that you can provide just-in-time access for. Any Active Directory group can be set up as a role in Access Manager.

Using the same self-service interface, entitled users can request access to the role at any time. Access Manager will then add them to the corresponding Active Directory group, and automatically remove them when the expiry time has elapsed.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-a2d967df3a3951924c1a834045ace1100761ca9e%2Fweb-request-jit-roles.gif?alt=media)

### Strengthening security and closing gaps

Deploying LAPS is a great way to protect devices, but how do you then keep LAPS passwords themselves safe? Attackers have tools that allow them to harvest LAPS passwords from Active Directory, and without the proper monitoring in place, it can happen without tripping any alarms.

Access Manager isn't just about improving usability, it also uplifts the security of your LAPS solution.

#### Access Manager protects sensitive access with strong authentication

LAPS passwords stored in Active Directory are vulnerable to harvesting via stolen credentials and tickets. There is no way to protect them with modern authentication and MFA.

Access Manager provides support for modern authentication options like OpenID Connect, allowing you to protect access to LAPS passwords by using identity providers such as Microsoft Entra or Okta. You can enforce strong authentication mechanisms like passkeys, and eliminate the risk of password harvesting directly from Active Directory.

#### Access Manager prevents mass-harvesting of LAPS passwords

If an attacker gets their hands on credentials that have permission to read LAPS passwords from Active Directory, there's nothing stopping them from extracting all the LAPS passwords for your organization in seconds.

Access Manager prevents this by implementing rate limiting for all access requests. You can set per-user and per-IP address rate limits, to mitigate the damage that can be done in the event a person with AMS access has their credentials compromised.

#### Access Manager improves visibility of LAPS access events

The out-of-box auditing story for Microsoft LAPS leaves a lot to be desired. Have you ever had to search event logs to try and find out who accessed a LAPS password in Active Directory? Were the right audit events even turned on when you needed them? How many domain controller event logs did you have to search through to find what you needed?

Access Manager provides detailed audit logs for every access event, and optionally allows you to send them via email, via webhook to Slack or Teams, to Splunk, and even to PowerShell, allowing unlimited flexibility on how you track these events.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-76017eac21e38052841ed1fe62f4f12788194caa%2Fauditing-example-slack.png?alt=media)

### A universal solution for organizations of all sizes

#### Access Manager lets you deploy LAPS to your entire organization

So we can deploy LAPS to Windows devices, but what about linux and macOS devices?

The Access Manager agent extends LAPS support to these operating systems, and allows retrieval through the exact same web app and exact same process as Windows LAPS passwords.

#### The Access Manager web app is a multi-purpose tool

We are your one-stop-shop for managing privileged access to endpoints, so using the same web app that allows users to access LAPS passwords, we've enabled other scenarios like retrieving BitLocker recovery passwords and providing just-in-time access to computers and roles.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-61d31fca217cae02099df341ed1330d0163c42f6%2Fweb-request-bitlocker.gif?alt=media)

#### Access Manager is extensible

We know each organization has its own individual needs that need to be considered when deploying solutions to manage and delegate privileged access. We've built Access Manager to be extensible through PowerShell, allowing you to bring your own custom auditing and authorization solutions to the product.

### Getting started

Read our [getting started guide](/ams/installation/getting-started) to learn how to start using Access Manager to secure your environment today.

### Other security solutions from Lithnet

We recommend you also look at [Lithnet Password Protection for Active Directory](https://lithnet.io/products/password-protection/), to help strengthen your environment against commodity password-based attacks.


# How does Lithnet Access Manager help prevent lateral movement?

Lateral movement is a technique used by attackers, where after gaining initial access to one system, they obtain credentials that allow them to move into other hosts on the network.

Windows systems are particularly prone to lateral-movement based attacks. It is not uncommon for desktop support staff to be administrators of all workstations, and server admin staff to be an administrator of every server. In some environments, the local admin password is the same on every machine. These configurations make it trivial to exploit a Windows environment.

Ransomware operators love this type of environment.

In most cases, large-scale ransomware attacks are successful because they manage to steal credentials of accounts that are admins on large numbers of computers.

So, how do we defend against these types of attacks?

## 1. Secure the built-in administrator account

While every computer has its own local administrator account, if the password is the same it is effectively a single account - one that has access to every machine, and is not tied to AD. It is not audited in any AD logs, and there are no controls on its usage. It makes for a very attractive target for an attacker. If they obtain access to it, it is very easy for them to move through the environment undetected. All that is needed for ransomware success is the compromise of a single machine with this password.

This is why Microsoft LAPS is so important. It randomizes the password on each individual machine and changes it regularly, ensuring that if one machine is compromised and its local admin password exposed, that local admin password cannot be used to access other machines on the network.

Unfortunately, accessing the Microsoft LAPS password is not the most user-friendly experience. You need to install a thick client, or use the advanced attribute editor of the Active Directory Users and Computers tool. For technicians out in the field this can be problematic, as they may be at a customer site without their own computer.

Fortunately, Lithnet Access Manager Service (AMS) provides mobile-friendly web-based access to LAPS passwords so that they can be accessed from any device with a browser. Combined with the ability to support modern authentication protocols like OpenID Connect, you can protect access to these passwords with multifactor authentication.

The Enterprise Edition of Access Manager includes the Lithnet Access Manager agent which can be used to manage the local admin password where Microsoft LAPS isn't or can't be used. It does not require Active Directory to operate, and therefore allows us to support macOS, Linux, non-domain joined Windows devices, as well as Microsoft Entra joined devices. You can of course also use it on Active Directory joined devices, and benefit from the other advanced features of the agent.

For ultimate ease-of-use, the Access Manager Agent provides a new RapidLAPS capability. This allows users to log into devices using a QR code or PIN, and eliminates the need to ever type in a long and complicated LAPS password.

For added protection, it is highly recommended that you [deny local accounts access to the computer over the network](https://support.microsoft.com/en-au/help/4488256/how-to-block-remote-use-of-local-accounts-in-windows). This will ensure that the local admin password cannot be used over the network at all. It will only work for local logins.

## 2. Removing everyone from the local administrators group

So if we have secured the local admin password, what other lateral movement risks remain? If you think back to the attack scenario, where an attacker is looking for credentials on a machine they have compromised, what happens if an admin is logged on to the machine at the time? If that user has admin rights on other machines, then the attacker may be able to steal hashes, Kerberos tickets, and in some cases the plain-text password. They can then move into other systems with those stolen credentials.

There are lots of things you can do to help mitigate these attacks, not all of them easy or 100% foolproof. We do encourage you to research and implement as many defenses as you can to prevent lateral movement attacks. You need to choose the ones that make sense for your environment.

One of the simplest to achieve technically, that has a high degree of effectiveness, is to simply not have any permanent members of the local administrators group.

While this sounds scary, Access Manager takes the technical complexity away from making such a change. Your administrators of course, will need to adapt to a new way of working, so getting appropriate buy-in from senior management is important. Like the other mitigations, it's not foolproof, and it's not perfect. It is however a relatively low complexity solution, that offers a high value.

The theory behind this approach, quite simply, is that if a computer is compromised, and the user is a local admin on that computer but nowhere else, then lateral movement with that account becomes very difficult. So instead of having all your admins as members of the local administrators group, you assign them 'just-in-time access' (JIT) rights in Access Manager. When they need to access a computer, they visit the Access Manager website, request JIT access to the computer, and Access Manager will grant them the appropriate rights for the length of time you allow. They can then log on to the server, and perform whatever work they need to, just as they did before. You can read more about exactly [how Access Manager performs just-in-time access](/ams/configuration/deploying-features/setting-up-jit).

The difference here is that they are entitled to be an administrator of the computers you specify in the Access Manager configuration tool, but they only get promoted to administrator when they need and request it.

This means that at any single point in time, you have relatively few users with admin rights across your fleet of computers, drastically reducing the ability for an attacker to spread across the fleet.

It is important to note at this point, that Access Manager is not a fully-fledged Privileged Access Management (PAM) tool. There are no approval workflows. You determine in advance who can access which computer, and they can self-grant those privileges at any time. There are plenty of commercial PAM solutions out there if you want to control who and when people can access certain resources. We're not trying to fix that problem. We just want our admins to be admins only when they need to do admin work.


# Access Manager Editions

{% hint style="info" %}
Community edition is free for up to 100 devices. Professional edition starts at USD 750 a year, including 100 devices. Professional and Enterprise editions have the same features, and Access Manager shows both as Enterprise edition on its licensing page. See [Access Manager pricing](https://lithnet.io/products/access-manager/pricing/) to order online, or [request a free 30-day trial](https://lithnet.io/products/access-manager/trial/).
{% endhint %}

Access Manager comes in two product editions. A free community edition, that provides key protections from lateral movement-based attacks, and enterprise edition, which allows organizations to take full advantage of the security and usability enhancements provided by the Access Manager solution.

## Enterprise Edition

Enterprise edition unlocks the full potential of Access Manager. From fully customizing the user experience, to providing advanced authorization and auditing integrations it's the ultimate solution for organizations who want the best protections against lateral movement, and the best user experiences for support staff.

Enterprise edition customers can deploy the Access Manager agent to their Windows, macOS and Linux devices and move away from difficult to use passwords, to easy to remember passphrases.

On Windows, our RapidLAPS feature means your support staff will never have to touch a LAPS password ever again, and use a PIN or QR-code based login instead.

Enterprise edition also enables additional functionality, such as support for high availability, and advanced custom authorization rules.

See the [licensing](/ams/licensing) page for information on how to trial or purchase an Enterprise Edition license.

## Community Edition

Access Manager Community edition is our core offering, that contains the key features that an organization need to help defend themselves from lateral movement-based attacks. You can provide your users full access to Microsoft LAPS passwords and request just-in-time admin access to computers, all from the convenience of their browser.

Community edition allows the deployment of the Access Manager agent to up to 100 devices.

Community edition is completely free for any organization of any size to use, however no formal support is provided by Lithnet.

## Feature comparison

### Web app features

The Access Manager web app is the main feature of the product that your support staff and end users will be interacting with.

| Feature                                                                                 |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| --------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Access to local admin passwords set by the legacy Microsoft LAPS agent                  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Access to local admin passwords set by the new Microsoft Windows LAPS agent             | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Access to local admin passwords and passphrases set by the Lithnet Access Manager Agent | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Access to BitLocker recovery passwords                                                  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Just-in-time administrative access to Windows computers                                 | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Just-in-time access to custom roles                                                     |                                                                                           Limited to 3 roles                                                                                          | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Review and approve RapidLAPS login and elevation requests                               | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| 'Read aloud' function for passwords (where supported by the browser)                    | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Phonetic display of passwords                                                           | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Access to local admin password history 3                                                |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Show the local admin username 3                                                         |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Trigger LAPS password change when the password has been accessed 4                      | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Customize and brand the web app user interface                                          |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Lithnet Access Manager Agent features

Access Manager comes with its own agent which enables RapidLAPS, support for passphrase-based LAPS passwords, and BitLocker recovery key backup.

Community edition customers can deploy up to 100 agents in their environment.

| Feature                                                          |                                                                                          Community Edition                                                                                          |                                                                                           Enterprise Edition                                                                                          |
| ---------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Manage local admin passwords                                     |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Generate passphrases for LAPS passwords                          |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Retain historical local admin password history                   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Backup BitLocker recovery keys 5                                 |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Passwordless login via RapidLAPS 5                               |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Passwordless elevation via RapidLAPS 5                           |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for domain-joined Windows devices                        |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for non-domain joined Windows clients                    |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for macOS devices (Intel and arm64)                      |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for Microsoft Entra-joined Windows 10 and higher devices |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for Linux distributions (x64, arm64) 2                   |                                                                                        Limited to 100 devices                                                                                       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Just-in-time access features

| Feature                                                   |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| --------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Just-in-time administrative access to Windows computers   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Just-in-time access to Active Directory role-based groups |                                                                                           Limited to 3 roles                                                                                          | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### BitLocker features

| Feature                                                        |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| -------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Read BitLocker recovery passwords from AD                      | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Read BitLocker recovery passwords from non-AD joined devices 1 |                                                                                         Limited to 100 devices                                                                                        | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Authentication features

Access Manager supports several authentication mechanisms. You can use a modern authentication provider like Microsoft Entra ID or Okta to add MFA support to your Access Manager instance.

| Feature                                       |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| --------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Support for Integrated Windows Authentication | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for OpenID Connect                    | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for WS-Federation                     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Support for smart-card authentication         | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Auditing features

| Feature                                                |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| ------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Log events to the Windows event log                    | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Send audit notifications via webhooks                  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Send audit notifications via email                     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Send audit notifications via custom PowerShell scripts | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Send audit notifications to Splunk HEC                 |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Infrastructure

| Feature                    |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| -------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Multi-domain support       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Cross-forest trust support | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Single-server deployments  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Load-balanced deployments  |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Authorization features

| Feature                                                              |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| -------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| ACL-based authorization                                              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Custom PowerShell script-based authorization                         |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Global rate-limiting on requests                                     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Import Microsoft LAPS permissions from Active Directory              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Import BitLocker recovery password permissions from Active Directory | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Import local admin permissions from computers                        | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Import permissions from CSV file                                     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Configuration management features

| Feature                                                |                                                                                           Community Edition                                                                                           |                                                                                           Enterprise Edition                                                                                          |
| ------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Manage AMS groups from the UI                          | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Manage AMS groups from PowerShell                      |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Manage AMS devices from the UI                         | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Manage AMS devices from PowerShell                     |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Manage AMS registration keys from the UI               | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Manage AMS registration keys from PowerShell           |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Create and modify authorization rules using the UI     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Create and modify authorization rules using PowerShell |  ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

### Support

| Feature                       |                                                                                          Community Edition                                                                                          |                                                                                           Enterprise Edition                                                                                          |
| ----------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Enterprise support by Lithnet | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

1. Requires the use of the Lithnet Access Manager Agent
2. See the page on [supported Linux operating systems](/ams/installation/system-requirements) for more details
3. Requires the use of the Lithnet Access Manager Agent or the Microsoft Windows LAPS client
4. Not supported when using the Microsoft Windows LAPS client and storing the password in Microsoft Entra
5. Current supported on Windows devices only


# Licensing

{% hint style="info" %}
Community edition is free for up to 100 devices. Professional edition starts at USD 750 a year, including 100 devices. Professional and Enterprise editions have the same features, and Access Manager shows both as Enterprise edition on its licensing page. See [Access Manager pricing](https://lithnet.io/products/access-manager/pricing/) to order online, or [request a free 30-day trial](https://lithnet.io/products/access-manager/trial/).
{% endhint %}

Lithnet Access Manager comes in [two editions](/ams/access-manager-editions).

Community edition is the core product that is free for all organizations to use. It is community supported through our GitHub site, and allows organizations to build in-depth defences against lateral movement-based attacks using existing technology such as Microsoft LAPS.

Enterprise edition contains additional [features and functionality](/ams/access-manager-editions), such as support for operating systems and scenarios that Microsoft LAPS doesn't support. It is a licensed product, that comes with enterprise support. To obtain a quote for Enterprise edition, please fill out the [request for quotation](https://lithnet.io/products/access-manager/quote/) form.

We also offer trial licenses for organizations who would like to evaluate the product. If you'd like to request a trial, please fill out the [trial request form](https://lithnet.io/products/access-manager/trial/).


# What's new in Access Manager v3

Lithnet Access Manager v3 - the latest major release of Access Manager - is an exciting new release that's sure to revolutionize the way you use LAPS in your organization!

Already running Access Manager 3.0? See [What's new in v3.1](/ams/whats-new-in-v3.1) for the changes in this release.

## RapidLAPS passwordless login

We've made typing in long and complicated LAPS passwords a thing of the past!

Have you ever had to communicate a LAPS password over the phone? Are you tired of having to type in a complicated LAPS password over and over again, just to install some software?

With *RapidLAPS*, using just a QR code, or PIN, you can log into any LAPS-enabled computer, with the managed LAPS account, without ever having to type the LAPS password!

*RapidLAPS* integrates into the Windows lock screen and admin elevation prompts, allowing you to speed up the LAPS process wherever you use local admin accounts!

The great news is that this feature works, whether you are using Windows LAPS, legacy LAPS, or the Access Manager agent to manage your LAPS passwords.

## Passphrases for LAPS

In the scenarios where RapidLAPS isn't available or can't be used, we can still simply the process for users by using passphrases instead of randomly generated complex passwords.

Passphrases are available on all operating systems that support the Access Manager agent, configurable by custom policy that even lets you have full control of the word lists used to generate them.

So even if you do have to type in LAPS passwords, they're going to be as easy as possible to use!

## Unified policy management

AMS Agent settings are now unified across all supported client operating systems; you can target policies at AMS, Active Directory and Entra ID groups, organizational units and devices.

Active Directory-joined devices can now be managed by, and backup their local administrator passwords to the AMS server directly.

Windows, macOs, and Linux devices can now use Windows authentication to register with the AMS server, removing the need to issue registration keys when devices are joined to an Active Directory domain.

This means that wherever your devices are, or the directory they're tied to - managing LAPS configuration is as seamless as possible!

## What's new in the Lithnet Access Manager Service

### New features

* Active Directory-joined devices can now be managed by, and backup their local administrator passwords to the AMS server directly.
* AMS Agent policies can now be configured directly in the UI, unified across all supported client operating systems
  * Policies can be targeted at AMS, Active Directory and Entra ID groups, organizational units and devices.
* Added autocompletion support to the computer search box in the Web UI
* Added support for custom help messages presented to users in the event of an authorization error
* Added support for delivering JSON-formatted auditing events to Splunk HEC
* Added support for custom word lists that can be used to generate passphrases
* Added support for 'automatic JIT access group creation' rules to assign a Unix-style 'gidNumber' attribute to created groups

### Deprecated features

* Retrieval of Lithnet encrypted LAPS passwords from Active Directory.

### Removed features

* Entra-registered clients running the Access Manager agent can no longer use Entra authentication. Devices must be Entra-joined in order to authenticate with the Access Manager server.
  * *Note*: Entra ID-registered devices can still register with AMS via *registration tokens*.

### Changed features

* The Lithnet Access Manager Service now requires Microsoft .NET 10

## What's new in the Lithnet Access Manager Agent

The agent now supports passphrases, backing up BitLocker recovery keys for Windows devices, and enables our new RapidLAPS feature on Windows.

### New features

* RapidLAPS login and elevation
* Password management updates
  * Ability to generate passphrases for local administrator accounts.
  * Ability to manage the password for an account other than the built-in administrator account.
  * Ability to create a new local managed account if it doesn't already exist.
    * *Note*: Windows and MacOS only
  * Ability to backup BitLocker encryption keys to AMS.
    * *Note*: Windows only
* Devices can now use Windows authentication to register with the AMS server, removing the need to issue registration keys when devices are joined to an Active Directory domain.
* Windows devices will now attempt to create AMS authentication certificates protected by the computer's TPM, if available

### Removed features

* The Access Manager Agent no longer writes LAPS passwords to Active Directory. All LAPS passwords are saved to the Access Manager server itself.
* The v3 Access Manager Agent can only communicate with a v3 server. Therefore, the Access Manager Server must be upgraded to v3 before upgrading the clients to v3. Note, that v2 agents will continue to work with the v3 server.
* Support for 32-bit (x86) versions of Windows has been dropped in v3.1. The Windows agent is available for x64 and arm64 only.
* The Access Manager Agent no longer supports using Entra-based authentication for Entra-registered devices. The device must be Entra-joined to be able use Entra authentication.
* Windows 8.1 and Windows Server 2012 are no longer supported.
* Support for agents running on ARM32-based Linux operating systems is no longer available

### Deprecated features

* The Lithnet Access Manager custom Active Directory schema is no longer used by the agent

### Changed features

* The Lithnet Access Manager Agent for macOS and Linux now requires Microsoft .NET 10
* The Lithnet Access Manager Agent for ARM64 versions of Windows requires .NET Framework 4.8.1
* The Lithnet Access Manager Agent for x64 versions of Windows requires .NET Framework 4.7.2 or higher
* Group Policy is no longer used to manage the Access Manager Agent for Windows. All policy settings are configured via agent policies on the Access Manager Server
* Customization of the web app, including adding a custom logo, is now an [enterprise edition](/ams/access-manager-editions) feature.


# What's new in v3.1

Access Manager v3.1 moves the v3 release line to .NET 10. It contains no functional changes over an up-to-date v3.0 installation. Upgrading extends your support window and updates the operating systems the product supports.

Upgrading from Access Manager v2? The features you're gaining were introduced in v3.0. See [What's new in Access Manager v3](/ams/whats-new).

## Extended support

Access Manager v3.0 reaches its end of support on 10 November 2026, in line with Microsoft .NET 8. Access Manager v3.1 is supported until 14 November 2028. See the [product lifecycle page](/ams/help-and-support/lifecycle) for all support dates.

## .NET 10

The Access Manager service, and the agents for macOS and Linux, now run on Microsoft .NET 10. The installers install the required runtime components automatically, and no manual runtime installation is needed.

## Operating system support changes

* Support for 32-bit (x86) versions of Windows has been dropped. The Windows agent is now available for x64 and arm64 only. Devices running 32-bit versions of Windows can continue to use the v3.0 agent until v3.0 reaches its end of support.
* Support for Fedora 43 and Fedora 44 has been added.
* Support for Debian 11, Ubuntu 20.04, Fedora 35 through 41, and macOS 13 has been removed, as these are not supported by .NET 10.

See [Upgrading from Access Manager v3.0](/ams/installation/upgrading-from-v3.0) for upgrade steps, and the [downloads page](https://lithnet.io/products/access-manager/downloads/?version=3.1) for the v3.1 installers.


# Change log

{% updates format="full" %}
{% update date="2026-10-14" tags="security" %}

## v3.1.1134

{% hint style="warning" icon="shield-halved" %}
This release contains an important security fix. Update recommended.
{% endhint %}

Access Manager v3.1

#### Service

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates .NET to resolve the October 2026 security vulnerabilities

<i class="fa-sparkles">:sparkles:</i> **Improved**

* Signs every executable and library installed by the Windows agent and the Access Manager service

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where the agent policy option to remove existing LAPS passwords from Active Directory did not remove them
* Fixes an issue where an encryption certificate that was deleted and then imported again was missing after the service restarted

#### Agent

**Windows**

<i class="fa-sparkles">:sparkles:</i> **Improved**

* Adds a NOSTART option to the Windows agent installer that installs the agent without starting its service
* Signs every executable and library installed by the Windows agent and the Access Manager service

<i class="fa-arrow-right-arrow-left">:arrow-right-arrow-left:</i> **Changed**

* Removes the agent installer's dependency on VBScript in advance of its deprecation and removal from Windows.

**Linux**

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates .NET to resolve the October 2026 security vulnerabilities

**macOS**

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates .NET to resolve the October 2026 security vulnerabilities

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where the macOS agent could lose the current password of an account with a secure token if a password change was interrupted or slow to complete

#### Downloads

* **Service**: [x64](https://packages.lithnet.io/win/access-manager-service/v3.1/x64/LithnetAccessManagerService-3.1.1134.0-x64.exe)
* **Agent**
  * **Windows**: [x64](https://packages.lithnet.io/win/access-manager-agent/v3.1/x64/LithnetAccessManagerAgent-Windows-3.1.1134.0-x64.msi) · [arm64](https://packages.lithnet.io/win/access-manager-agent/v3.1/arm64/LithnetAccessManagerAgent-Windows-3.1.1134.0-arm64.msi)
  * **Linux**
    * **Debian / Ubuntu**: [x64](https://packages.lithnet.io/linux/deb/packages/access-manager-agent/v3.1/x64/LithnetAccessManagerAgent3_3.1.1134.0-1_amd64.deb) · [arm64](https://packages.lithnet.io/linux/deb/packages/access-manager-agent/v3.1/arm64/LithnetAccessManagerAgent3_3.1.1134.0-1_arm64.deb)
    * **RHEL / Fedora**: [x64](https://packages.lithnet.io/linux/rpm/packages/access-manager-agent/v3.1/x64/LithnetAccessManagerAgent3-3.1.1134.0-1.x86_64.rpm) · [arm64](https://packages.lithnet.io/linux/rpm/packages/access-manager-agent/v3.1/arm64/LithnetAccessManagerAgent3-3.1.1134.0-1.aarch64.rpm)
    * **Portable (tar.gz)**: [x64](https://packages.lithnet.io/linux/tar/packages/access-manager-agent/v3.1/x64/LithnetAccessManagerAgent3_3.1.1134.0-1_x64.tar.gz) · [arm64](https://packages.lithnet.io/linux/tar/packages/access-manager-agent/v3.1/arm64/LithnetAccessManagerAgent3_3.1.1134.0-1_arm64.tar.gz)
  * **macOS**: [x64](https://packages.lithnet.io/macos/access-manager-agent/v3.1/x64/LithnetAccessManagerAgent-macos-3.1.1134.0-x64.pkg) · [arm64](https://packages.lithnet.io/macos/access-manager-agent/v3.1/arm64/LithnetAccessManagerAgent-macos-3.1.1134.0-arm.pkg)
    {% endupdate %}

{% update date="2026-09-03" tags="maintenance" %}

## v3.1.1119

Access Manager v3.1

#### Service

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where the up-to-date indicator did not appear in the configuration app
* Fixes an issue where some database timestamps could be shown in the wrong time zone
* Fixes an issue where an agent could fail to rotate the local administrator password after a device reset or agent reinstallation

#### Agent

**Windows**

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where an agent could fail to rotate the local administrator password after a device reset or agent reinstallation
* Fixes an issue that could prevent the Windows agent from rotating local administrator passwords or submitting BitLocker recovery keys after startup

**Linux**

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where an agent could fail to rotate the local administrator password after a device reset or agent reinstallation

**macOS**

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where an agent could fail to rotate the local administrator password after a device reset or agent reinstallation
  {% endupdate %}

{% update date="2026-08-12" tags="security" %}

## v3.1.1114

{% hint style="warning" icon="shield-halved" %}
This release contains an important security fix. Update recommended.
{% endhint %}

Access Manager v3.1

#### Service

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Disables the built-in .NET diagnostics interface
* Updates .NET to resolve the August 2026 security vulnerabilities

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where a trusted domain could fail to be recognised when its name casing differed

#### Agent

**Windows**

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where RapidLAPS was unavailable at the logon screen for up to an hour after a device started while the server was unreachable

**Linux**

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Disables the built-in .NET diagnostics interface
* Updates .NET to resolve the August 2026 security vulnerabilities

**macOS**

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Disables the built-in .NET diagnostics interface
* Updates .NET to resolve the August 2026 security vulnerabilities
  {% endupdate %}

{% update date="2026-07-21" tags="breaking,security" %}

## v3.1.1102

{% hint style="danger" icon="triangle-exclamation" %}
This release contains breaking changes. Review the details below before upgrading.
{% endhint %}

Access Manager v3.1

#### Service

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates the .NET runtime to the July 2026 security release

<i class="fa-sparkles">:sparkles:</i> **Improved**

* Adds support for configuring the database backup and maintenance times
* Improves update notification inside the configuration app

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where importing authorization rules resulted in an error
* Fixes an issue where imported authorization rules had no default JIT duration or display name visible in the rules list
* Fixes an issue where authorization rules may not display in the admin UI
* Fixes an issue where the installer failed when .NET 9 or later was installed without .NET 8
* Fixes an error when modifying notification channels using PowerShell
* Fixes an error when setting a notification channel on a role authorization rule using PowerShell
* Fixes an issue where some fields in the configuration app did not refresh when related options changed
* Improves authentication handling on the agent API endpoints

<i class="fa-arrow-right-arrow-left">:arrow-right-arrow-left:</i> **Changed**

* Access Manager now runs on .NET 10

#### Agent

**Windows**

<i class="fa-triangle-exclamation">:triangle-exclamation:</i> **Breaking**

* The Windows agent is no longer available for 32-bit (x86) versions of Windows
* The Windows agent is no longer available for Windows 10

<i class="fa-wrench">:wrench:</i> **Fixed**

* Fixes an issue where an agent that had been reset did not resubmit its BitLocker recovery keys, leaving the server without current recovery keys
* Fixes an issue where the installer failed when .NET 9 or later was installed without .NET 8

**Linux**

<i class="fa-triangle-exclamation">:triangle-exclamation:</i> **Breaking**

* The Linux agent is no longer available for Debian 11, Ubuntu 20.04, and Fedora 38 to 41

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates the .NET runtime to the July 2026 security release

<i class="fa-sparkles">:sparkles:</i> **Improved**

* Adds support for Ubuntu 26.04
* Adds support for Fedora 43 and Fedora 44

<i class="fa-arrow-right-arrow-left">:arrow-right-arrow-left:</i> **Changed**

* Access Manager now runs on .NET 10

**macOS**

<i class="fa-shield-halved">:shield-halved:</i> **Security**

* Updates the .NET runtime to the July 2026 security release

<i class="fa-arrow-right-arrow-left">:arrow-right-arrow-left:</i> **Changed**

* Access Manager now runs on .NET 10

<i class="fa-circle-minus">:circle-minus:</i> **Removed**

* Support for macOS 13 (Ventura) has been removed
  {% endupdate %}
  {% endupdates %}


# Getting started

## About

Lithnet Access Manager consists of two components.

The first is the Lithnet Access Manager Service (AMS). AMS is a web-based interface where users can request various types of access to computers. It's the core service of Access Manager.

The second component is an optional agent, the Access Manager agent. You can choose between using the Microsoft LAPS agent, or the Lithnet Access Manager agent to set LAPS passwords.

This document will guide you through the process for configuring Lithnet Access Manager, and the features you want to use in your environment.

## Installation

You'll need to first install and configure the Access Manager Service application.

[Installing the Access Manager Service](/ams/installation/installing-the-access-manager-server/installing-the-access-manager-service)

## Choosing the LAPS agent to use

If you plan on providing access to local admin passwords with Access Manager, you'll need to deploy and configure either the Microsoft LAPS agent, or the Lithnet Access Manager agent, to your devices, in order to rotate and store the LAPS passwords.

If you simply want to provide access to LAPS passwords already stored in your Active Directory or Microsoft Entra, then you can skip this step.

You can read more details in our guide for [choosing between the Microsoft and Lithnet LAPS agents](/ams/help-and-support/choosing-between-the-microsoft-and-lithnet-laps-agents).

An agent is not required for the other features of AMS, such as just-in-time administrative access and BitLocker recovery password access.

## Configuring features

Once you've installed AMS, you use the following guides to configure specific features as needed.

* **RapidLAPS**
  * [Setting up RapidLAPS](/ams/configuration/deploying-features/setting-up-rapid-laps)
* **LAPS**
  * [Setting up Microsoft LAPS for Active Directory](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps)
  * [Setting up Microsoft LAPS for Microsoft Entra](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad)
  * [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)
* **Just-in-time access (JIT)**
  * [Setting up JIT access for computers](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-computers)
  * [Setting up JIT access for roles](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-roles)
* **BitLocker Recovery**
  * [Setting up BitLocker access](/ams/configuration/deploying-features/setting-up-bitlocker)


# System Requirements

## Access Manager Server (AMS) Operating System Support

### Operating system requirements

The Lithnet Access Manager Service requires Windows Server 2016 or higher.

#### Dependencies

* [.NET Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed
* [ASP.NET Core Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed
* Microsoft SQL Express 2022 (if hosting the database locally), SQL Server 2019 or later (Standard or Enterprise edition), Azure SQL or an Amazon RDS SQL database. (SQL express is installed by default). See the [SQL installation options](/ams/installation/installing-the-access-manager-server/sql-installation-options) page for more details

## Access Manager Agent Operating System Support

The Lithnet Access Manager agent is supported on Windows, macOS, and Linux. Each operating system family has slightly different requirements.

### Windows requirements

#### Dependencies

The agent requires the installation of .NET Framework 4.7.2 or later if it is not already installed as part of the OS for x64 installations. For arm64 installations, .NET Framework 4.8.1 is required.

#### Supported versions

* x64 Windows 10 / Windows Server 2016 or later
* arm64 Windows 10 or later

### macOS requirements

#### Supported versions

* macOS 14 (Sonoma) (Intel or ARM64)
* macOS 15 (Sequoia) (Intel or ARM64)
* macOS 26 (Tahoe) (ARM64)

### Linux requirements

#### Dependencies

The Access Manager Agent requires the use of the `chpasswd` tool that is built into most modern Linux systems.

#### Supported versions

The agent runs on .NET 10 and should work on any Linux distribution supported by Microsoft for these platforms.

Lithnet provides packages for RPM and Debian-based distributions, as well as tar.gz file for use with others.

See the [Microsoft guide for supported operating systems for .NET 10](https://github.com/dotnet/core/blob/main/release-notes/10.0/supported-os.md)

The following operating system versions have been tested and are supported by Lithnet while they are within their vendor support lifecycle:

| Distribution | Version | Architecture |
| ------------ | ------- | ------------ |
| Ubuntu       | 22.04   | x64/arm64    |
| Ubuntu       | 24.04   | x64/arm64    |
| Ubuntu       | 26.04   | x64/arm64    |
| RHEL         | 8       | x64/arm64    |
| RHEL         | 9       | x64/arm64    |
| RHEL         | 10      | x64/arm64    |
| Fedora       | 42      | x64/arm64    |
| Fedora       | 43      | x64/arm64    |
| Fedora       | 44      | x64/arm64    |
| Debian       | 12      | x64/arm64    |
| Debian       | 13      | x64/arm64    |


# Upgrading from Access Manager v1

There is no direct upgrade path available for migrating from Access Manager v1 to Access Manager v3. If you are still running v1, then you must first upgrade to v2, following the [update guidance](https://docs.lithnet.io/ams/v2.0/installation/upgrading-from-v1) for that version. Once you have migrated to v2, you can perform a [v2 to v3 update](/ams/installation/upgrading-from-v2).


# Upgrading from Access Manager v2

## Summary

Upgrading your environment from version 2 to version 3 of Access Manager requires some careful planning as things have changed.

We recommend reviewing the [migration considerations](/ams/installation/upgrading-from-v3.0/migration-consideration-from-v2) document to understand more about the changes introduced.

{% hint style="warning" %}

#### Upgrade the AMS server before upgrading the AMS agents

The v3 agent can only communicate with a v3 server. Ensure that you upgrade the server to v3, before upgrading the agents to v3.

The v3 server can host both v2 and v3 agents.
{% endhint %}

## Upgrading the Access Manager Server

### Before you upgrade

#### Update your license

If you are an Access Manager *enterprise edition* customer, ensure that you have applied an AMSv3 license to your instance of AMS before you perform the upgrade. Contact [Lithnet support](https://lithnet.io/support/) if you have not been issued an AMSv3 license key.

All AMSv3 licenses are compatible with the AMSv2 server; this way, licences can be installed in advance of the upgrade.

You do not need an AMSv3 license to perform the upgrade - however, if you proceed without it, the server will be downgraded to community edition after the update.

#### Migrate your service principal name (SPN)

When user authentication was configured to use integrated windows authentication, Access Manager v2 employed the use of kernel-mode authentication. This required that the SPN for the web site be registered against the AMS computer object.

In AMSv3, the Access Manager service uses user-mode authentication, and as such, the SPN must be moved to the AMS service account.

First use the `setspn -q` command to query for the presence of the AMS SPN. The SPN will be in the format of `HTTP/servername`. In this example, replace `ams.dev.lithnet.local` with the external host name configured for your application.

```powershell
C:\> setspn -q HTTP/ams.dev.lithnet.local
Checking domain DC=dev,DC=lithnet,DC=local
CN=AMS1,CN=Computers,DC=dev,DC=lithnet,DC=local
        HTTP/ams.dev.lithnet.local

Existing SPN found!
```

If the SPN was not found, then this step is not required.

If the SPN is found, and it is associated with the computer object, it must be removed using `setspn -D`

```powershell
C:\> setspn -D http/ams.dev.lithnet.local AMS1
```

Once it has been removed, you can add it to the AMS service account

```powershell
C:\> setspn -S http/ams.dev.lithnet.local svc-lithnetams
```

### Method 1: In-place upgrade

The in-place upgrade process from Access Manager v2 to v3 is very straight forward. You can simply install the [new version of AMS](https://lithnet.io/products/access-manager/downloads/?version=3.1) over the top, and the application will update the database and relevant configuration settings.

If you are using AMS in a highly available load-balanced configuration:

1. Stop the 'Lithnet Access Manager' service on all nodes in the farm.
2. Upgrade AMS on each node at a time by running the ['Access Manager Service' installer](https://lithnet.io/products/access-manager/downloads/?version=3.1).

* Once a node has been upgraded, the Access Manager can be safely restarted.
* However, note that v2 nodes and v3 nodes must not be operating at the same time.

As a best practice precaution, we recommend taking a backup of the server and database before performing the upgrade.

### Method 2: Deploying to a new server, using existing configuration

There is no direct path available for exporting configuration from one server, and importing it into another.

If you want to migrate configuration from a different server, then you should first install AMSv2 on the new server. Then take a backup of the existing server's database, and restore using the procedure documented in the [backup and restore guide](/ams/help-and-support/advanced-help-topics/backup-and-restore).

Once your copy of the server is up and running, you can then perform an in-place upgrade to AMSv3.

## Upgrading the Access Manager Agent

Before deploying the v3 Access Manager agent, you'll need to first update the Access Manager server. The v3 agent can only communicate with a v3 server.

### Create new v3 agent policies

AMSv3 agents require new policies to be created.

View the following guides for configuring your policies for the various supported features:

* [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)
* [Setting up RapidLAPS](/ams/configuration/deploying-features/setting-up-rapid-laps)
* [Setting up BitLocker backup](/ams/configuration/deploying-features/setting-up-bitlocker/setting-up-bitlocker-ams)

### Deploy Windows agents

{% hint style="info" %}
The v3.1 Windows agent is available for x64 and arm64 only. Devices running 32-bit versions of Windows can continue to use the v3.0 agent until v3.0 reaches its end of support on 10 November 2026.
{% endhint %}

The Windows agent can be deployed directly over the top of the existing v2 agent as an in-place upgrade. You can download the agent from the \[downloads page]\(<https://lithnet.io/products/access-manager/downloads/?version=3.1>).

For more information, read the guide on [installing the Access Manager agent on Windows](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-windows).

#### Active Directory-joined Windows hosts

Active Directory-joined Windows hosts no longer store their passwords in Active Directory. As such, when upgrading these agents to v3, you must now specify the server name as part of the installation. You can use the following command line to install the agent in Active Directory authentication mode, replacing the server name with your own server.

```
msiexec /i Lithnet.AccessManager.Agent.msi /qn AUTHMODE=1 SERVER=ams.lithnet.local 
```

### Deploy macOS agents

There are no special considerations to make when deploying the macOS agent.

Follow the steps in the [macOS installation guide](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-macos) to install the new agent over the top of the old agent.

### Deploy Linux agents

The Access Manager agent package has been renamed from `LithnetAccessManagerAgent` to `LithnetAccessManagerAgent3` to prevent auto updates to v3 before the server has been upgraded to v3.

The `LithnetAccessManagerAgent3` supersedes the previous agent, and migrates the config, so the upgrade process should be seamless.

For RPM-based distributions, make sure you specify the `--allowerasing` flag.

```shell
# Upgrade the agent (from version 2 to version 3)
sudo dnf install LithnetAccessManagerAgent3 --allowerasing
```

For DEB-based distributions, make sure you specify the `--autoremove` argument flag.

```shell
# Upgrade the agent (from version 2 to version 3)
sudo apt install lithnetaccessmanageragent3 --autoremove
```

Please read the [Linux installation guide](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-linux) guide for full details.


# Upgrading from Access Manager v3.0

Access Manager v3.1 is a platform release that moves the product to .NET 10. Access Manager v3.0 is supported until 10 November 2026, and v3.1 is supported until 14 November 2028. See the [product lifecycle page](/ams/help-and-support/lifecycle) for all support dates.

If you are upgrading from Access Manager v2, follow the [v2 upgrade guide](/ams/installation/upgrading-from-v2) instead.

## Upgrading the Access Manager Server

v3.1 is an in-place upgrade from v3.0. Download the v3.1 ['Access Manager Service' installer](https://lithnet.io/products/access-manager/downloads/?version=3.1) and run it over the top of the existing installation. The v3.0 configuration and database are compatible with v3.1, and no configuration changes are required. The installer automatically installs the required .NET 10 runtime components.

As a best practice precaution, we recommend taking a backup of the server and database before performing the upgrade.

If you run a load-balanced farm, all nodes must be updated at the same time. This applies to every Access Manager upgrade, as database schema changes can be introduced in any release.

## Upgrading the Access Manager Agents

The v3.1 agent uses the same server API as v3.0, so agents and the server can be upgraded in either order.

The v3.1 agents install over the top of the existing v3.0 agents on all platforms. Note the following operating system support changes before planning your agent rollout:

* The v3.1 Windows agent is available for x64 and arm64 only. Devices running 32-bit versions of Windows can continue to use the v3.0 agent until v3.0 reaches its end of support.
* The v3.1 agents for Linux and macOS are not available for Debian 11, Ubuntu 20.04, Fedora 35 through 41, or macOS 13, as these operating systems are not supported by .NET 10.

The agent installers are available from the [downloads page](https://lithnet.io/products/access-manager/downloads/?version=3.1). If you installed the Linux agent from the Lithnet package repository, v3.1 is published as an update to the existing package, so a standard package update upgrades the agent. See the installation guides for [Windows](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-windows), [macOS](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-macos), and [Linux](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-linux) for deployment steps.


# Considerations for migrating from Access Manager v2

Upgrading your environment from version 2 to version 3 of Access Manager requires some careful planning as things have changed.

## Access Manager Server

### Enterprise edition license key update required

If you are an Access Manager *enterprise edition* customer, you will require a new license key to support AMSv3.

Existing *enterprise edition* customers should contact [Lithnet support](https://lithnet.io/support/) to obtain an AMSv3 license prior to upgrading if they have no already done so.

### Community edition no longer allows web app customization

Access Manager v2 allowed *community edition* users to customize some elements of the web app such as branding and custom logo use.

In Access Manager v3, customization of the web app is now an *enterprise edition* feature.

Community edition users upgrading from v2 to v3 will revert to the default settings of the web app.

### Audit template updates

In order to support accurate logging of audit events in line with new features such as RapidLAPS, the event log template has been replaced with a new version. If you have customized the event log template, you'll need to reapply your customizations after the upgrade. The old event log template will be backed up to the Access Manager app path under the `migration-backups` folder.

Updated versions of the slack, teams, and email templates are provided for use in the `templates` folder of the application install directory. These are not applied by default.

### Agent policies

Agent policies from Access Manager v2 will be imported as "Legacy agent v2 policies". They will continue to work as they do today.

However, before deploying v3 agents, you'll need to create v3 agent policies, as the legacy v2 agent policies are not used by the new agent.

This will allow you to leverage new features such as RapidLAPS, passphrases, and BitLocker recovery key backup.

Policies are now set per operating system type, as each operating system has different feature sets available to it.

See the guides for [configuring Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps) to set up new password policies that are compatible with V3 agents.

You can also set up new features that the v3 agent unlocks by following the [configuring RapidLAPS](/ams/configuration/deploying-features/setting-up-rapid-laps), and [configuring BitLocker backup](/ams/configuration/deploying-features/setting-up-bitlocker/setting-up-bitlocker-ams) guides.

### SPN migration required when using Windows authentication for users

When user authentication was configured to use integrated windows authentication, Access Manager v2 employed the use of kernel-mode authentication. This required that the SPN for the web site be registered against the AMS computer object.

In AMSv3, the Access Manager service uses user-mode authentication, and as such, the SPN must be moved to the AMS service account. The [migration guide](/ams/installation/upgrading-from-v2) provides the steps required to do this.

## Access Manager Agent

{% hint style="warning" %}

#### Upgrade the AMS server before upgrading the AMS agents

The v3 agent can only communicate with a v3 server. Ensure that you upgrade the server to v3, before upgrading the agents to v3.

The v3 server can host both v2 and v3 agents.
{% endhint %}

### Access Manager Agent no longer supports writing passwords to the Active Directory custom schema

When a v2 agent is installed on a host that was joined to an Active Directory domain, it writes LAPS passwords to a set of custom schema attributes in Active Directory. The v3 agent no longer writes to these Active Directory attributes, and instead, stores its password directly in the AMS server.

When upgrading these agents to v3, you must now specify the server name as part of the installation.

For more information, read the guide on [installing the Access Manager agent on Windows](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-windows)

### Group policy is no longer used to configure password management of Windows-based agents

The password policy settings configured for the v2 agent via group policy are no longer used by the v3 agent. The v3 agent uses policies configured on the AMS server.

See the guides for [configuring Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps) to set up new password policies that are compatible with V3 agents.

### The package name for the Linux agent has changed

The Access Manager agent package has been renamed from `LithnetAccessManagerAgent` to `LithnetAccessManagerAgent3` to prevent auto updates to v3 before the server has been upgraded to v3.

The `LithnetAccessManagerAgent3` supersedes the previous agent, and migrates the config, so the upgrade process should be seamless.

Please read the [Linux installation guide](/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-linux) guide for full details.

### ARM32 packages are no longer available

Due to an incompatibility with [.NET 8 and ARM32](https://github.com/dotnet/core/discussions/9285), Lithnet is currently unable to provide an ARM32 agent for Access Manager v3. You can continue to use the v2 agent on these devices, and upgrade your server to v3. Advanced features, such as passphrases will not be available on these devices, and they will remain managed by legacy AMSv2 policies.


# Installing the Access Manager Server


# Creating a service account for the Access Manager Service

## Account type

We strongly recommend using a [group-managed service account (GMSA)](https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview) for the service process to run under.

Group-managed service accounts, introduced in Windows Server 2012, provide a fantastic way to secure your service account by letting the Active Directory itself take care of generating, and rotating, the password. Just like a computer account, the password is a strong, random sequence of 128 bits.

You'll find a script at the end of this page for creating a GMSA.

You can use a standard user account if you prefer, but make sure you keep the service account password safe and secure. Access to this service account means access to large numbers of machines in your Active Directory. Treat the Access Manager server and service account with the same level of security as you would a domain controller or domain admin account.

## An important note about delegation

One of the most important protections you should implement, is ensuring that the AMS service account cannot be delegated. That is, other services in your domain that are allowed to impersonate other users in the domain, should be explicitly prevented from being able to impersonate the AMS service account. This is achieved through the use of the `Account is sensitive and cannot be delegated` userAccountControl flag. This is accessible in the properties window of an AD account for a standard user, but must be set with PowerShell for a GMSA. The GMSA script provided below already takes care of this.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-b41a177dbe0dc0441962d1cf6c0d6d974f28646c%2Faduc-account-is-sensitive.png?alt=media)

## Domain permissions

AMS does need specific rights depending on how you plan to use it. For example, if you are reading Microsoft LAPS passwords, then you'll need to ensure the appropriate read permissions are granted. If you are using it for JIT access, then the ability to modify membership of certain groups is needed. The AMS configuration tool provides all the scripts needed to delegate just the permissions that are needed for the scenarios you want to use.

Resist the temptation to add the AMS service account to groups such as domain admins. It doesn't need those rights, no service ever does. If you are having access issues, raise an issue on GitHub, and we'll be happy to troubleshoot and help you resolve the problem.

## User interface warnings

We do take these recommendations seriously, and as such, the UI will alert you in the event of a change of configuration

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-a64e4a297736dbbf8288ce411fcd4e4e16a6fd6f%2Fdelegation-warning.png?alt=media)

## Create a group-managed service account

Use the following script to create a group managed service account. This script requires membership in the Domain Admins group to execute correctly.

Please change the `$accountName` and `$amsServerName` variables as needed for your environment.

```powershell
# Create-GroupManagedServiceAccount
#
# This script enables the KDS service in the domain if it is not already enabled,
# and creates a new group-managed service account to use with the Access Manager service
#
# This script requires membership in the Domain Admins group
#
# Version 1.0

#-------------------------------------------------------------------------
# Set the following values as appropriate for your environment
#-------------------------------------------------------------------------

$amsServerName = "$($env:ComputerName)" # Set this to the name of the server you are installing AMS on,
$accountName = "svc-lithnetams"
$description = "Service account for the Lithnet Access Manager Service"

#-------------------------------------------------------------------------
# Do not modify below here
#-------------------------------------------------------------------------

$ErrorActionPreference = 'Stop'
$InformationPreference = 'Continue'

try 
{
    $ComputerExists = Get-ADComputer -Identity $amsServerName -ErrorAction Stop
} 
catch 
{
    Write-Warning "Computer account $amsServerName doesn't exists. Terminating."
    return
}

$RootKey = Get-KdsRootKey

if (-not $RootKey) 
{
    Write-Host 'In order to create a group-managed service account, a KDS key must be generated for this domain. If this is a non-production domain, you can generate a new key with immediate effect, otherwise you must wait 10 hours for the key to replicate to all DCs before proceeding.' -ForegroundColor Yellow
    Write-Host 'Visit the following site to learn more: https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/create-the-key-distribution-services-kds-root-key' -ForegroundColor Yellow
    $result = Read-Host -Prompt 'Do you want to create the key with immediate effect? Y/N'

    if ($result -eq "Y")
    {
        Write-Host "Generating KDS root key with immediate effect" -ForegroundColor Green
        $key = Add-KdsRootKey -EffectiveTime ((get-date).AddHours(-10))
    }
    else
    {
        Write-Host "Generating KDS root key" -ForegroundColor Green
        $key = Add-KdsRootKey -EffectiveImmediately
    }

    Sleep 5
}

$RootKey = Get-KdsRootKey

if (-not $RootKey)
{
    Write-Warning "KDS Root Key not available. Terminating."
    return
}

$remainingTime = $RootKey.EffectiveTime.AddHours(10).Subtract((Get-Date));

if ($remainingTime -gt 0) 
{
    Write-Warning "The KDS root key is not yet available. Microsoft recommend waiting 10 hours before using the KDS key, to ensure it has had time to replicate to all domain controllers. The KDS key will be ready in $($remainingTime). Please re-run this script after that time."
    return
}

try 
{
    New-ADServiceAccount -Name $accountName -AccountNotDelegated $true -Description $description -RestrictToOutboundAuthenticationOnly -Enabled $true -KerberosEncryptionType AES256, AES128 -SamAccountName $accountName -ErrorAction Stop
}
catch
{
    Write-Warning "New-ADServiceAccount - Error creating GMSA account. Terminating with error: $($_.Exception.Message)"
    return
}

try 
{
    Set-ADServiceAccount -Identity $accountName -PrincipalsAllowedToRetrieveManagedPassword $ComputerExists.SamAccountName
}
catch 
{
    Write-Warning "Set-ADServiceAccount - Error assigning GMSA account. Terminating with error: $($_.Exception.Message)"
    return
}

$serviceAccountName = "$((Get-ADDomain).NetbiosName)\$accountName$"

Write-Host "You may need to wait for domain replicate to complete before you are able to use the account" -ForegroundColor Yellow
write-Host
Write-Host "The service account has been created. Use $ServiceAccountName in the installer." -ForegroundColor Yellow
```


# SQL installation options

Access Manager requires a Microsoft SQL Server 2019 or higher database. The setup program can install a pre-configured instance of SQL express, or you can choose to use an existing SQL server, or even an Azure SQL database.

## Using the pre-configured SQL Express instance

During installation, you can choose to have a pre-configured instance of SQL Express installed. The installer will create and configure a new SQL express instance (named `AMS`) on the local machine. Access to the database will be restricted to local administrators and the AMS service account.

This is suitable for small to medium-sized installations of Access Manager, and has a number of benefits such as being completely configured and managed by the AMS service itself. Do note that SQL express has several limitations that you will need to consider;

* 1 GB maximum memory used by the database engine
* 10 GB maximum database size
* 1 MB maximum buffer cache
* Limited to the lesser of one (1) CPU socket or four (4) cores

For larger installations of Access Manager, you should consider using SQL server Standard or Enterprise edition.

If you are using the high-availability feature of Access Manager, you cannot use SQL Express. The SQL instance will need to be installed on a separate computer. Alternatively, use an Azure SQL or Amazon RDS database configured for high availability.

If you plan to use SQL Express, but the server you are installing on does not have an internet connection, then [download the SQL Express installer](https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLEXPR_x64_ENU.exe) and copy it to the server. You'll be prompted to provide this file during setup.

## Using SQL Standard or Enterprise Edition

If you are running Access Manager in a large environment, or SQL express is otherwise not suitable, you can set up the AMS database on an SQL instance of your choosing. You must manually set up your instance, and create the database, before running the installer. During installation, you will be prompted for the server and instance name.

The database should be called `AccessManager` and the AMS service account must be added to the `db_owner` role of the database. Your database administrator can do this for you, or you can use the script below to create a new database with the default settings, and assign the correct permissions.

### Installation steps

Use the following steps to manually create the database, allowing you to specify advanced properties like where the database files will be located, how big they should be initially and how much they should grow by, and what recovery mode to use.

1. Create a new database on the SQL server with the name `AccessManager`.
2. Create a login for the service account
3. Map the service account login to the `AccessManager` database
4. Add the service account to the `db_owner` role for the `AccessManager` database
5. Once these steps are complete, you can run the AMS installer, and specify your SQL server name and instance when prompted

Alternatively, you can use the following script to create a basic database with default settings. Note, that the default settings may not result in a database that is suitable for production use. You should ensure that at least the following settings are appropriate for your environment

1. Database file location
2. Database initial size and auto growth settings
3. Ensure the recovery mode matches your backup strategy and recovery point objectives

```sql
/*
---------------------------------------------------------------
Access Manager SQL database build script
	Step 1. Modify the @ServiceAccount variable to contain the account name of the service account that is used to run the AMS service
                If the service account is a group-manged service account, don't forget to add the '$' character to the end of the account name
	Step 2. Run this script to set the appropriate permissions on the database
---------------------------------------------------------------
*/
DECLARE @ServiceAccount nvarchar(256) = 'DOMAIN\svc-lithnetams$'

---- Do not modify
DECLARE @ServiceAccountQuoted nvarchar(256) = QUOTENAME(@ServiceAccount);

IF DB_ID('AccessManager') IS NULL 
BEGIN
    -- Get the SQL Server data path.
        DECLARE @data_path nvarchar(256);       
        SET @data_path = (SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name)) - 1)
                FROM master.sys.master_files
                WHERE database_id = 1 AND file_id = 1);

	  EXECUTE ('
CREATE DATABASE [AccessManager]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N''AccessManager'', FILENAME = "' + @data_path + 'AccessManager.mdf", SIZE = 1048576KB , FILEGROWTH = 131072KB )
 LOG ON 
( NAME = N''AccessManager_log'', FILENAME = "' + @data_path + 'AccessManager.ldf", SIZE = 524288KB , FILEGROWTH = 65536KB )

')
    
    ALTER DATABASE [AccessManager] SET RECOVERY SIMPLE 
    PRINT 'Created database'
END

IF NOT EXISTS 
    (SELECT name  
     FROM [master].sys.server_principals
     WHERE name = @ServiceAccount )
BEGIN
      EXEC ('CREATE LOGIN ' + @ServiceAccountQuoted + ' FROM WINDOWS WITH DEFAULT_DATABASE=[AccessManager]');
	  PRINT 'Created server login'
END

IF NOT EXISTS
    (SELECT (1)
        FROM [master].sys.server_principals sp
        JOIN [AccessManager].sys.database_principals dp on dp.sid = sp.sid
        WHERE sp.name = @ServiceAccount )
BEGIN
    EXEC ('USE [AccessManager]; CREATE USER ' + @ServiceAccountQuoted + ' FOR LOGIN ' + @ServiceAccountQuoted);
	PRINT 'Mapped service account login to database user'
END

DECLARE @name nvarchar(250) = (SELECT dp.name FROM [master].sys.server_principals sp
        JOIN [AccessManager].sys.database_principals dp on dp.sid = sp.sid
        WHERE sp.name = @ServiceAccount)

IF (@name <> 'dbo')
BEGIN
    EXEC ('USE [AccessManager]; ALTER ROLE [db_owner] ADD MEMBER ' + @ServiceAccountQuoted)
	PRINT 'Granted db_owner role to service account'
END

```

## Using Azure SQL

Using an Azure SQL database is fully supported by Access Manager. You'll need to create an empty database before running the installer, and create a login for the AMS service to use.

### Installation steps

1. From the Azure Portal, create a new `SQL Database` resource
2. Follow the wizard prompts, specifying the database name, and instance type as appropriate. We recommend you use the name `AccessManager`
3. Once the database has been provisioned, open the new resource
4. Select the `Query editor` option from the left menu, and authenticate to the instance
5. In the query editor window, paste the following code after modifying the password field to contain your own strong password

```sql
CREATE USER [svc-lithnetams] WITH password='your-password-here';
EXEC sp_addrolemember 'db_owner', 'svc-lithnetams';

```

6. Run the code to create a user in the database for the service account to use
7. From the menu on the left-hand side, expand `Settings`, select `Connection Strings`, and copy the `ADO.NET (sql authentication)` connection string
8. Modify the username and password in the connection string to contain the username and password you created earlier. Your connection string should look similar to below

```
Server=tcp:ams.database.windows.net,1433;Initial Catalog=AccessManager;Persist Security Info=False;User ID=svc-lithnetams;Password='your-password-here';MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
```

9. Once these steps are complete, you can run the AMS installer, and provide the connection string when prompted.

## Using Amazon RDS

Using an AWS RDS Microsoft SQL database is fully supported by Access Manager. You'll need to create an empty database before running the installer, and create a login for the AMS service to use.

### Installation steps

1. From the AWS Console, create a new `Microsoft SQL Server` RDS resource
2. Select the appropriate options and instance configuration for your environment
3. Once the server has been provisioned, ensure you allow the AMS server access to the RDS instance via the appropriate security groups
4. Using Microsoft SQL Management Studio, connect to the RDS instance using the admin credentials created during the setup process
5. In the query editor window, paste the following code after modifying the password field to contain your own strong password

```sql

CREATE LOGIN [svc-lithnetams] WITH password='your-password-here';
GO

-- Get the SQL Server data path.
DECLARE @data_path nvarchar(256);       
SET @data_path = (SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name)) - 1)
        FROM master.sys.master_files
        WHERE database_id = 1 AND file_id = 1);

EXECUTE ('
CREATE DATABASE [AccessManager]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N''AccessManager'', FILENAME = "' + @data_path + 'AccessManager.mdf", SIZE = 1048576KB , FILEGROWTH = 131072KB )
 LOG ON 
( NAME = N''AccessManager_log'', FILENAME = "' + @data_path + 'AccessManager.ldf", SIZE = 524288KB , FILEGROWTH = 65536KB )
')

GO
USE [AccessManager]

CREATE USER [svc-lithnetams] FOR LOGIN [svc-lithnetams]
EXEC sp_addrolemember 'db_owner', 'svc-lithnetams';
```

6. Using the connecting string template below, modify the `Server`, `User ID` and `Password` variables to match the RDS endpoint and service credentials you created

```
Server=tcp:amsdb.xxxxx.us-east-1.rds.amazonaws.com,1433;Initial Catalog=AccessManager;Persist Security Info=False;User ID=svc-lithnetams;Password=your-password-here;MultipleActiveResultSets=False;Connection Timeout=30;
```

7. Once these steps are complete, you can run the AMS installer, and provide the connection string when prompted.

## Security considerations

It is important to secure access to your database. It contains information used by computers to authenticate to the AMS server, as well as their group membership.

We recommend that if possible, the database server is kept dedicated for Access Manager, and not shared with other applications. Administrators of the database server should be restricted to AMS admins only.


# Installing the Access Manager Service

## Prerequisites

In order to install the Access Manager Service, the following prerequisites must be met;

1. Windows Server 2016 or later
2. [.NET Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed
3. [ASP.NET Core Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed
4. Microsoft SQL Express 2022, if hosting the database locally, or a separate SQL Standard or Enterprise edition server. (SQL express is installed by default)
5. If you plan to use SQL Express, but the server you are installing on does not have an internet connection, then [download the SQL Express installer](https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLEXPR_x64_ENU.exe) and copy it to the server. You'll be asked to specify the installation file during setup.
6. A TLS certificate for the AMS website

The installer can download the prerequisites when an internet connection is available. You can read the guide on [what internet access is required](/ams/help-and-support/advanced-help-topics/internet-access-requirements) for automatic prerequisite installation.

## Step 1: Create a service account

The Access Manger Service needs to run under the context of a domain user account. We strongly recommend using a group-managed service account for this purpose. [We've created a guide for setting up a GMSA](/ams/installation/installing-the-access-manager-server/creating-a-service-account-for-the-access-manager-service) which includes a script to get you up and running quickly.

Do not grant any specific permissions to this account and most certainly don't add it to super-privileged groups like Domain Admins. As you go through the setup process, you'll be given scripts to delegate permissions specific to the functionality you want to enable.

## Step 2: Prepare an SSL certificate

Determine the host name you will use to access AMS and request an SSL certificate from your certificate provider. Install the certificate in the 'personal' store of the local computer.

You can use the following command to create a self-signed SSL certificate suitable for testing, replacing the DNS name with the name of your AMS server

```
New-SelfSignedCertificate -DnsName "ams.domain.local" -CertStoreLocation "cert:\LocalMachine\My"
```

## Step 3: Download and install the AMS service

1. Download the latest version from the [downloads](https://lithnet.io/products/access-manager/downloads/?version=3.1) page.
2. Download and install the [.NET Desktop runtime and the .NET hosting bundle](https://dotnet.microsoft.com/download/dotnet-core/8.0/runtime), or if your server has internet access, you can let the installer download and install these for you
3. Run the AMS installation package. Follow the prompts to install the application and provide the service account created in step 1 when prompted.

## Step 4: Configure the host

Launch the `Access Manager Service configuration tool` from the start menu.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-3219305a5244ced089f5b7424b3f96eb370907f0%2Fui-page-host-configuration.png?alt=media)

From the `Host configuration` page, click the `Select from store...` button and select the certificate you installed in step 2.

Select the option to enable the web app, to allow users to request access to computers and roles. If you plan on using the Lithnet Access Manager Agent, then select the option to enable the Access Manager API.

Click `File`, then `Save`.

[More information on configuring the host](/ams/help-and-support/application-help-pages/host-configuration-page)

## Step 5: Configure your authentication provider

AMS supports several authentication providers. Read the guide on [configuring authentication](/ams/configuration/setting-up-authentication) and choose an authentication provider. We strongly recommend using a modern authentication provider that supports strong authentication and can enforce multifactor authentication. While integrated windows authentication is provided, we recommend you only use this for testing purposes.

## Step 6: Configure outbound email settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-534801bef8e94d325e3d24d6b96df5c13918c18e%2Fui-page-email.png?alt=media)

You'll need to configure an outbound mail server in order to receive audit alerts via email.

[More information on email settings](/ams/help-and-support/application-help-pages/app-configuration/email-page)

## Step 7: Set up rate limits

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-bd74c5d158bce09f33135891e5bb7d3e8f187460%2Fui-page-rate-limits.png?alt=media)

In order to ensure that your service is not used inappropriately, you can place limits of the number of requests a user can make in a given time. You should set these high enough that your users are not going to encounter rate limit issues under normal usage, but low enough to limit the impact of inappropriate or malicious usage of the service.

[More information on rate limiting](/ams/help-and-support/application-help-pages/app-configuration/rate-limits-page)

## Step 8: Configure IP Detection

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9fc5658800af9d334189f4360f0dd8d39097fc6a%2Fui-page-ip-detection.png?alt=media)

If you put AMS behind a reverse proxy or load balancer, you'll need to configure IP address detection. This is to ensure that AMS logs the correct IP address in audit logs, and applies rate limiting correctly.

[More information on IP address detection](/ams/help-and-support/application-help-pages/app-configuration/ip-address-detection-page)

## Step 9: Customize the Web user interface

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-f19d1c8e94078befe2f948d71917f9307e599eea%2Fui-page-user-interface.png?alt=media)

Configure the user interface as per your organization's requirements. You can customize the name of the application, provide your own logo and even provide some custom policy text for the access request page.

[More information on user interface settings](/ams/help-and-support/application-help-pages/app-configuration/user-interface-page)

## Step 10: Configure Auditing

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-f5cfc4b5f993099b7bd3782042a5e5ad6d562dbc%2Fui-page-auditing.png?alt=media)

AMS has a powerful auditing engine that allows you to receive notifications when access is granted or denied to a user. AMS logs audit events to the Windows event log all the time, but you can also send audit events via email, through a custom PowerShell script, or even to Slack or Microsoft Teams using a web hook.

[More information on Auditing](/ams/help-and-support/application-help-pages/app-configuration/auditing-page)

## Step 11: Configure Active Directory permissions

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8b1425333048fd38bf2ad245819e95e1ad713e9d%2Fui-page-directory-configuration-active-directory.png?alt=media)

From the `Active Directory` tab, check that the AMS service account is a member of the `Windows Authorization Access Group` and `Access Control Assistance Operators` built-in groups within each domain. This is required for the AMS service account to be able to calculate access permissions for users and computers within these domains. If any permissions are missing, use the `Grant permission` button to generate a script to grant them.

You will need to restart the service to pick up the new group membership in the local domain.

## Step 12: Configure access to local admin passwords, just in time access, and BitLocker

Now that you have the core application set up, you can configure the Access Manager features you are interested in;

* [Setting up Microsoft LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps)
* [Setting up Lithnet LAPS for Active Directory, Microsoft Entra, macOS and Linux](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)
* [Setting up JIT access for computers](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-computers)
* [Setting up JIT access for roles](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-roles)
* [Setting up BitLocker access](/ams/configuration/deploying-features/setting-up-bitlocker)


# High availability options

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-777b39409f48f271de2f52ccc6f33e3248829f95%2Fbadge-enterprise-edition-rocket.svg?alt=media) High availability is an [Enterprise edition feature](/ams/access-manager-editions)

You can deploy Access Manger in a highly available load-balanced configuration using the guide below.

[Installing Access Manager in a load-balanced farm](/ams/installation/installing-the-access-manager-server/high-availablity-options/installing-access-manager-load-balancer);


# Load balancing Access Manager

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-777b39409f48f271de2f52ccc6f33e3248829f95%2Fbadge-enterprise-edition-rocket.svg?alt=media) High availability is an [Enterprise edition feature](/ams/access-manager-editions)

Access Manager is fully supported in load-balanced environments. You can have a load-balanced web app farm, and a separate agent API farm, or a single farm for both.

## Requirements

* If the load balancer 'hides' the real client IP address (e.g. a 'application/layer 7' load balancer), it must support supplying the client IP address in the X-Forwarded-For header
* The load balancer must support load balancing both HTTP and HTTPS. 'SSL offloading' is not supported.
* The load balancer must be configured to use sticky sessions/session persistence
* A Lithnet Access Manager enterprise edition license
* At least one Windows Server 2012 R2 domain controller in the domain where AMS will be installed
* The [KDS root key](https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/create-the-key-distribution-services-kds-root-key) in the domain must be enabled
* The same account must be used on all hosts in the farm. A group-managed service account is strongly recommended
* Each host must be running the same version of the Access Manager Service at all times
* An external SQL server, Azure SQL, or Amazon RDS SQL server. Using SQL express is not supported in a high availability scenario

## Installation procedure

### 1. Prepare the SQL database

* You cannot use the built-in SQL express database instance when installing AMS for high availability, so you'll need to create your database in advance. This can be on a SQL standard or enterprise edition standalone host, or cluster, or you can deploy the database in an Azure SQL or Amazon RDS instance. See the [SQL installation guide](/ams/installation/installing-the-access-manager-server/sql-installation-options) for more information.

### 2. Install Access Manager Service on the first node

* On the first node, follow the steps in the [installation guide](/ams/installation/installing-the-access-manager-server/installing-the-access-manager-service) for configuring AMS features as appropriate for your environment.
* Make sure you provide your Enterprise edition license key, save your configuration, and restart the service before moving onto install subsequent nodes

### 3. Install Access Manager Service on the remaining nodes

* Repeat the installation process for the next node. Make sure to use the same service account, connection string, and TLS certificate on each server.

{% hint style="info" %}
Settings on the `Host configuration` page will need to be configured per-node. All other settings are stored centrally in the database. Therefore, you will not need to provide the license key after installing it on the first node.
{% endhint %}

If you want to separate web access from agent API access, you can create multiple individual load balanced farms with different nodes in each. Select the appropriate services on the `Host configuration` page for the role that the specific node will play. You'll need to configure the farm host names for the API and web app as shown in step 6.

Otherwise, if the farm will service both API and web app users, then ensure that the `External host name` field matches the name of the load balanced endpoint that both the agents and web app users will connect to.

### 4. Configure the IP address detection settings

* If the load balancer 'hides' the real client IP address (e.g. a 'application/layer 7' load balancer), you must configure the IP address detection settings in the app. If you are using a 'transport layer' load balancer, such as Microsoft NLB, you can skip this step.
* From the `App configuration/IP detection` page, select the option to `Resolve client IP address from X-Forwarded-For headers`.
* If you have multiple load balancers, web application firewalls, or reverse proxies in front of the application, adjust the `Maximum allowed entries in header` to reflect the number of trusted devices that will be contributing to the X-Forwarded-For header value. For example, if your AMS server sits behind a load balancer farm, which sits behind a WAF farm, then enter `2` for this value.
* Provide the IP address, or IP network range that the load balancer appliance (and other WAFs or proxies) sits in. This allows AMS to accurately detect which IP address belongs to the client.
* Test that the configuration is working correctly, by making an access request via the web app. In audit entry that appears in the event log, you should see the correct client IP address, and not the IP address of the load balancer.

### 5. Configure the load balancer

* Configure the load balancer to point to the nodes of the farm.
* If your load balancer provides customizable probes or health checks, see the 'Load balancer probes/Heath check\` section below.
* Configure session persistence to ensure client communications don't flip between server nodes

### 6. Configure the external host name

If you are deploying separate farms for the web app and API, you'll need to configure farm-wide external host names for each instance.

Using PowerShell, configure the host names that agents and users will be using for the API and web app respectively

```powershell
Set-AmsServiceConfig -FarmApiHostName "api.mycompany.com" -FarmWebAppHostName "app.mycompany.com"
```

This only needs to be configured on one node, but all nodes need to be restarted after this setting change.

## Load balancer probes/Health checks

### Web app

If you are load balancing the web app, the load balancer can be configured to make a `HTTP GET` call to the `/health-check` endpoint to determine host availability. A HTTP `200 OK` response indicates the service is healthy. Any other response should be treated as a failure. Health check requests must be performed over HTTPS.

### API

If you are load balancing the agent API, you can make a HTTP GET call to the `api/v3.0/health-check` endpoint to determine host availability. A HTTP `200 OK` response indicates the service is healthy. Any other response should be treated as a failure. Health check requests must be performed over HTTPS.


# Installing the Access Manager Agent


# Enabling agent support on the AMS server

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-777b39409f48f271de2f52ccc6f33e3248829f95%2Fbadge-enterprise-edition-rocket.svg?alt=media) Managing more than 100 devices requires an [Enterprise edition license](/ams/access-manager-editions)

The Lithnet Access Manager agent is an optional component you can deploy in your environment that provides a host of additional features that compliments the Access Manager server.

You should deploy the agent when you want to take advantage of the following capabilities

* Using the RapidLAPS passwordless LAPS login feature
* Using passphrases for LAPS passwords, instead of random characters
* Backing up BitLocker recovery keys from AD-joined, Entra-joined, and standalone Windows devices
* Managing the root password on macOS and linux devices

The following guide outlines the steps required to enable agent support on the Access Manager server

## Step 1: Enable agents to communicate with the AMS server

From the `Host configuration` page, tick `Enable agents to communicate with this host`, and specify the host name clients will use to connect to the server. This must match the DNS name in the active TLS/SSL certificate, or clients will be unable to connect.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-3219305a5244ced089f5b7424b3f96eb370907f0%2Fui-page-host-configuration.png?alt=media)

{% hint style="info" %}
If you wish to allow agents to register with their Active Directory identity, you will need to configure a service principal name (SPN) on the service account used by the Access Manager Service.

If this SPN is not set, the following warning will appear in the `Service account` section of the `Host configuration` page:

\--

<img src="https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-1e1b476456c42778a09646841758b009ebffd969%2Fspn-warning.png?alt=media" alt="" data-size="original">
{% endhint %}

Use the script provided to correctly set the SPN on the AMS service account. ../../images/spn-warning.png

## Step 2: Enable device registration modes

From the `Access Manager Agent/Agent registration` page, select the methods devices will use to register with the AMS server:

* Windows authentication can be used to automatically register agents on Active Directory-joined devices
* Microsoft Entra authentication can be used to register agents on Entra-joined devices.
* Registration keys can be configured to register agents on all other devices.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-fb26ca3ec0a5015ad7b6c7f494d2dcd87b31854c%2Fui-page-access-manager-agent-agent-registration.png?alt=media)

{% hint style="info" %}
Devices require line-of-site to a domain controller to register using with Windows authentication. If you have devices that will not have line-of-site to a domain controller at registration time (e.g. workstations that might be off the network), then ensure you select the option to enable NTLM authentication.

Windows authentication is only used for the initial agent registration, and line-of-site to a domain controller is not required for normal operations.
{% endhint %}

If you do not plan on using Microsoft Entra authentication, then the setup process is complete.

## Step 3: Configure Entra ID tenant

If you enable devices to register with Microsoft Entra authentication, you must register your Entra ID tenant details, and grant permission for the service to read device information from the directory.

### Create the Entra app registration

Follow the steps in [Creating an Entra app for Access Manager](/ams/help-and-support/advanced-help-topics/creating-an-entra-app) to create the app registration for Access Manager. Take note of the tenant ID, client ID and secret created here as they will be used in the next step.

Ensure that the appropriate API permissions have been granted for the `Deploying the Access Manager Agent to Entra-joined devices` scenario.

### Configure the service account details in Access Manager

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `Directory configuration/Microsoft Entra` page
3. Press the `Add...` button to add a new tenant configuration
4. Add the client ID, secret, and directory/tenant ID in the fields provided
5. Save the tenant configuration

{% hint style="info" %}
You may need to wait a minute or two for the secret and delegation to become active
{% endhint %}

Access Manager is now configured to support Microsoft Entra joined devices.


# Installing the Access Manager Agent on Windows

## Prerequisites

In order to install the Access Manager Agent, the following prerequisites must be met

1. Windows 10 or Windows Server 2016 or later
2. [.NET Framework Runtime](https://dotnet.microsoft.com/download) 4.7.2 or later installed for x64 versions of Windows
3. [.NET Framework Runtime](https://dotnet.microsoft.com/download) 4.8.1 or later installed for arm64 versions of Windows

We recommend using a configuration management tool such as SCCM to deploy the agent to your fleet.

## Determine your authentication mode

Active Directory-joined devices can use their machine identity to automatically authenticate to the AMS server.

Microsoft Entra-joined devices can use their Entra certificate to automatically authenticate to the AMS server.

Other devices must use a registration key, obtained from the AMS server to authenticate. These devices will create their own authentication certificate, and use the registration key a single time, to register their certificate with the server. Once this is successful, they will no longer need the registration key, and it will be deleted from the system.

## Download and install the Access Manager Agent

1. Download the latest version of the agent from the [downloads](https://lithnet.io/products/access-manager/downloads/?version=3.1) page. Take note that you must install the x64 version on 64-bit machines.
2. Run the agent installation package. When prompted, enter the server name, and choose the registration mode you'd like to use for the agent

{% hint style="warning" %}
If the hostname provided does not match exactly the `External host name` value configured on the [Host configuration page](/ams/help-and-support/application-help-pages/host-configuration-page), the agent will fail to connect to the server
{% endhint %}

## Deploying the agent silently

You can install the MSI packages silently using the following command lines

### Silent installation for domain-joined Windows devices

Use the following command line to install the agent in Active Directory authentication mode

```
msiexec /i Lithnet.AccessManager.Agent.msi /qn AUTHMODE=1 SERVER=ams.lithnet.local 
```

### Silent installation for Microsoft Entra-joined devices

Use the following command line to install the agent in Microsoft Entra mode, replacing the `SERVER` value as appropriate

```
msiexec /i Lithnet.AccessManager.Agent.msi /qn AUTHMODE=2 SERVER=ams.lithnet.local 
```

### Silent installation for standalone Windows devices

Use the following command line to install the agent in AMS registration mode, replacing the `SERVER` and `REGISTRATIONKEY` values are appropriate

```
msiexec /i Lithnet.AccessManager.Agent.msi /qn AUTHMODE=4 SERVER=ams.lithnet.local REGISTRATIONKEY=XXXX
```

### Installing the agent without starting it

By default, the installer starts the agent service as soon as the installation completes, and the agent connects to the AMS server on its first run. If you'd like to install or upgrade the agent without starting it, add `NOSTART=1` to the command line. This is useful when a deployment tool applies the agent configuration after installation, or when you're preparing a virtual machine image that shouldn't register with the AMS server before it's sealed.

```
msiexec /i Lithnet.AccessManager.Agent.msi /qn AUTHMODE=1 SERVER=ams.lithnet.local NOSTART=1
```

If you're upgrading an agent that is already running, the installer stops the agent to replace its files, and leaves it stopped when the upgrade completes.

The agent service is still configured to start automatically, so it will start the next time the device restarts. If you're preparing an image, don't restart the machine between installing the agent and sealing the image.

## Group policy configuration

If the agents are joined to an Active Directory domain, you can use [group policy](/ams/help-and-support/advanced-help-topics/group-policy-configuration) to configure the server that agents should connect to.

## Validate agent installation

On the Access Manager server, go to the `Access Manager Agent/Devices` page, and ensure that the devices you installed the agent on have appeared in the device list. If you configured your registration key to require manual approval, you must approve the devices before they can be accessed.

## Viewing log files

Basic logs entries can be viewed using the Windows Event Viewer, but more detailed log information can be found in `%ProgramFiles%\Lithnet\Access Manager Agent\logs`

## Reconfiguring the agent

If you need to change the agent configuration, you can do so at any time by running

```batch
"%ProgramFiles%\Lithnet\Access Manager Agent\Lithnet.AccessManager.Agent.exe" --setup
```


# Installing the Access Manager Agent on Linux

## Prerequisites

The Access Manager Agent makes use of the `chpasswd` tool, built into most Linux distributions. Ensure this tool is available before installing the agent.

The agent must be able to validate the AMS server certificate. If you are using a private CA, or a self-signed certificate, consult the guide relevant to your OS for how to add the certificate to the OS trust store. You can use OpenSSL to validate the trust state of the certificate using the `openssl verify cert.crt` command.

The agent itself runs using systemd, and as it requires access to reset the root password, must be run as the root user.

### .NET requirements

The agent is built using Microsoft .NET 10. Ensure the distribution you are using is supported. See the [Microsoft guide for supported operating systems for .NET 10](https://github.com/dotnet/core/blob/main/release-notes/10.0/supported-os.md) for more information.

## Agent installation

### Installing the agent on **Fedora** using the Lithnet repo

```shell
#!/usr/bin/env bash
​
# Ensure that the right DNF components are available
sudo dnf -y install dnf-plugins-core
​
# Add the Lithnet Fedora repository
sudo dnf config-manager --add-repo https://packages.lithnet.io/config/rpm/fedora/lithnet.repo 
```

If you are installing the agent for the first time, simply run:

> ```shell
> # Install the agent
> sudo dnf install LithnetAccessManagerAgent3
> ```

If you are *upgrading* the agent from version 2, ensure you include the `--allowerasing` argument to ensure the installation process can remove the old agent and migrate configuration:

> ```shell
> # Upgrade the agent (from version 2 to version 3)
> sudo dnf install LithnetAccessManagerAgent3 --allowerasing
> ```

### Installing the agent on **Red Hat** using the Lithnet repo

```shell
#!/usr/bin/env bash
​
# Ensure that the right DNF components are available
sudo dnf -y install dnf-plugins-core
​
# Add the Lithnet Fedora repository
sudo dnf config-manager --add-repo https://packages.lithnet.io/config/rpm/rhel/lithnet.repo 
```

If you are installing the agent for the first time, simply run:

> ```shell
> # Install the agent
> sudo dnf install LithnetAccessManagerAgent3
> ```

If you are *upgrading* the agent from version 2, ensure you include the `--allowerasing` argument to ensure the installation process can remove the old agent and migrate configuration:

> ```shell
> # Upgrade the agent (from version 2 to version 3)
> sudo dnf install LithnetAccessManagerAgent3 --allowerasing
> ```

### Installing the agent manually on RPM-based distributions

Use the appropriate package management tool to install the agent

```shell
# Download the Access Manager Agent data package
curl -L https://packages.lithnet.io/linux/rpm/packages/access-manager-agent/v3.1/noarch/stable -o ~/accessmanager-data.rpm
sudo dnf install ~/accessmanager-data.rpm

# Download the x64 Access Manager Agent
curl -L https://packages.lithnet.io/linux/rpm/packages/access-manager-agent/v3.1/x64/stable -o ~/accessmanager.rpm
sudo dnf install ~/accessmanager.rpm
```

### Installing the agent on **Debian** using the Lithnet repo

```shell
#!/bin/bash
​
# Install prerequisites
sudo apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
​
# Import the Lithnet GPG signing keys
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://packages.lithnet.io/keys/lithnet.asc | sudo gpg --dearmor -o /etc/apt/keyrings/lithnet.gpg
sudo chmod a+r /etc/apt/keyrings/lithnet.gpg
​
# Add the Lithnet repository, specific to your build and architecture
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/lithnet.gpg] \
  https://packages.lithnet.io/linux/deb/prod/repos/debian/ \
  $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/lithnet.list > /dev/null
​
# Fetch the new repo
sudo apt update
```

If you are installing the agent for the first time, simply run:

> ```shell
> # Install the agent
> sudo apt install lithnetaccessmanageragent3
> ```

If you are *upgrading* the agent from version 2, ensure you include the `--autoremove` argument to ensure the installation process can remove the old agent and migrate configuration:

> ```shell
> # Upgrade the agent (from version 2 to version 3)
> sudo apt install lithnetaccessmanageragent3 --autoremove
> ```

### Installing the agent on **Ubuntu** using the Lithnet repo

```shell
#!/bin/bash
​
# Install prerequisites
sudo apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
​
# Import the Lithnet GPG signing keys
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://packages.lithnet.io/keys/lithnet.asc | sudo gpg --dearmor -o /etc/apt/keyrings/lithnet.gpg
sudo chmod a+r /etc/apt/keyrings/lithnet.gpg
​
# Add the Lithnet repository, specific to your build and architecture
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/lithnet.gpg] \
  https://packages.lithnet.io/linux/deb/prod/repos/ubuntu/ \
  $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/lithnet.list > /dev/null
​
# Fetch the new repo
sudo apt update
```

If you are installing the agent for the first time, simply run:

> ```shell
> # Install the agent
> sudo apt install lithnetaccessmanageragent3
> ```

If you are *upgrading* the agent from version 2, ensure you include the `--autoremove` argument to ensure the installation process can remove the old agent and migrate configuration:

> ```shell
> # Upgrade the agent (from version 2 to version 3)
> sudo apt install lithnetaccessmanageragent3 --autoremove
> ```

### Installing the agent manually on Debian-based distributions

Use the appropriate package management tool to install the agent

```shell
# Download the Access Manager Agent data package
curl -L https://packages.lithnet.io/linux/deb/packages/access-manager-agent/v3.1/noarch/stable -o ~/accessmanager-data.deb
sudo apt install ~/accessmanager-data.deb

# Download the x64 Access Manager Agent
curl -L https://packages.lithnet.io/linux/deb/packages/access-manager-agent/v3.1/x64/stable -o ~/accessmanager.deb
sudo apt install ~/accessmanager.deb
```

### Installing the agent from the .tar.gz archive

Extract the archive to the root file system, allowing the files to be placed in their correct location. See the `File location` section below for more information on what files get unpacked and where.

While you do not need to install the .NET package itself, as the agent contains all the .NET components it needs to run, there are certain dependencies required by .NET, that if are not present, will prevent the agent from running. If you run into this issue, you may wish to install the .NET 10 package to automatically obtain the dependencies, or [review the list of dependencies](https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual) that .NET requires, and install these yourself.

Run the following command to register the service with systemd

```shell
/opt/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --install
```

Continue to the `Configuring the agent` section below.

## Configuring the agent

Once the package is installed, it must be configured to talk to your AMS server. You can run the following command to perform an interactive installation.

If your device is joined to an Active Directory domain, you can use Windows authentication (kerberos) to authenticate to the AMS server. Otherwise, you will need to create a registration key on the AMS server and use that instead.

```shell
/opt/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --setup
```

{% hint style="warning" %}
If the hostname provided does not match exactly the `External host name` value configured on the [Host configuration page](/ams/help-and-support/application-help-pages/host-configuration-page), the agent will fail to connect to the server
{% endhint %}

To perform a non-interactive installation, use the following command, replacing the server name, and registration key as appropriate. You can generate new registration keys using the AMS configuration tool.

Install the agent using a registration key

```shell
/opt/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --server ams.lithnet.local --registration-key XXXX
```

Install the agent using Windows authentication (kerberos)

```shell
/opt/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --server ams.lithnet.local --registration-mode iwa 
```

Check the log using the instructions in the `Viewing the log files` section below to ensure the agent registered correctly.

## Validate agent installation

On the Access Manager server, go to the `Access Manager Agent/Devices` page, and ensure that the devices you installed the agent on have appeared in the device list. If you configured your registration key to require manual approval, you must approve the devices before they can be accessed.

## Restarting the agent

The Lithnet Access Manager Agent runs as a daemon using systemd. You can use standard systemd commands to start, stop and restart the agent.

```shell
systemctl restart LithnetAccessManagerAgent
```

## Viewing log files

The agent logs are viewed using `journalctl`.

To show all events in the log use the following command

```shell
journalctl -u LithnetAccessManagerAgent -p 7 -a
```

To show a live stream of log messages use the following command

```shell
journalctl -u LithnetAccessManagerAgent -p 7 -a -f
```

## File locations

The agent creates and uses the following files and folders.

`/etc/LithnetAccessManagerAgent.conf` - The main configuration file for the application. This contains the AMS server name and other settings relevant to the application.

`/var/lib/LithnetAccessManagerAgent/LithnetAccessManagerAgent.state` - This contains information used by the agent to store its current state information. This file should not be modified. It is generated by the app when it is run, and is not part of the installation package.

`/opt/LithnetAccessManagerAgent` - This directory contains the application binary files.

`/etc/systemd/system/LithnetAccessManagerAgent.service` - The systemd entry for the agent


# Installing the Access Manager Agent on macOS

## Prerequisites

The agent must be able to validate the AMS server certificate. If you are using a self-signed certificate, or a certificate issued from a private CA, you'll need to [add the root certificate](https://support.apple.com/en-au/guide/keychain-access/kyca2431/mac) to the system keychain, and [configure it to be trusted](https://support.apple.com/en-au/guide/keychain-access/kyca11871/mac).

The agent itself runs using launchd, and as it requires access to reset the root password, must be run as the root user.

### OS requirements

The agent requires macOS 14 or later. Packages are available for both Intel and M-series Macs.

## Download the agent

Download the agent for the appropriate architecture from the downloads page, or directly from the package repository using the script below.

```shell
if [[ $(uname -m) == 'arm64' ]]; then 
    curl -fssL https://packages.lithnet.io/macos/access-manager-agent/v3.1/arm64/stable -o ~/accessmanageragent.pkg
else
    curl -fssL https://packages.lithnet.io/macos/access-manager-agent/v3.1/x64/stable -o ~/accessmanageragent.pkg
fi
```

## Validate the package signature

Ensure the package is valid, and has been signed by `Lithnet Pty Ltd (5DK86QQXK3)`

```shell
pkgutil --check-signature ~/accessmanageragent.pkg
```

## Install the agent

You can open the package from finder, or use the `installer` command line tool to install the package

```shell
sudo installer -pkg ~/accessmanageragent.pkg -target /
```

## Configuring the agent

Once the package is installed, it must be configured to talk to your AMS server. You can run the following command to perform an interactive installation

If your device is joined to an Active Directory domain, you can use Windows authentication (kerberos) to authenticate to the AMS server. Otherwise, you will need to create a registration key on the AMS server and use that instead.

```shell
sudo /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/Lithnet.AccessManager.Agent --setup
```

{% hint style="warning" %}
If the hostname provided does not match exactly the `External host name` value configured on the [Host configuration page](/ams/help-and-support/application-help-pages/host-configuration-page), the agent will fail to connect to the server
{% endhint %}

To perform a non-interactive installation, use the following command, replacing the server name, and registration key as appropriate. You can generate new registration keys using the AMS configuration tool.

Install the agent using a registration key

```shell
sudo /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/Lithnet.AccessManager.Agent --server ams.lithnet.local --registration-key XXXX
```

Install the agent using Windows authentication (kerberos)

```shell
sudo /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/Lithnet.AccessManager.Agent --server ams.lithnet.local --registration-mode iwa 
```

Check the log using the instructions in the `Viewing the log files` section below to ensure the agent registered correctly.

## Validate agent installation

On the Access Manager server, go to the `Access Manager Agent/Devices` page, and ensure that the devices you installed the agent on have appeared in the device list. If you configured your registration key to require manual approval, you must approve the devices before they can be accessed.

## Secure token support

From v3.0.1500, Access Manager has support for managing the passwords of admin accounts with secure token enabled. Read the [guide on enabling secure token support](/ams/help-and-support/advanced-help-topics/enabling-secure-token-support-macos) for more info.

## Restarting the agent

The Lithnet Access Manager Agent runs as a daemon using launchd. You can use standard launchd commands to start, stop and restart the agent.

```shell
sudo launchctl kickstart -k system/io.lithnet.accessmanager.agent
```

## Uninstalling the agent

You can use the uninstallation script provided to remove the agent from the computer.

```shell
sudo /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
```

## Viewing log files

The agent logs can be viewed using the `Console` app, or using the command line

To show all events in the log use the following command

```shell
tail /Library/Logs/Lithnet/AccessManagerAgent/LithnetAccessManagerAgent.log
```

To show a live stream of log messages use the following command

```shell
tail -f /Library/Logs/Lithnet/AccessManagerAgent/LithnetAccessManagerAgent.log
```

## File locations

The agent creates and uses the following files and folders.

`/Library/Application Support/Lithnet/AccessManagerAgent/Configuration/LithnetAccessManagerAgent.conf` - The main configuration file for the application. This contains the AMS server name and other settings relevant to the application.

`/Library/Application Support/Lithnet/AccessManagerAgent/Configuration/LithnetAccessManagerAgent.state` - This contains information used by the agent to store its current state information. This file should not be modified. It is generated by the app when it is run, and is not part of the installation package.

`/Library/Application Support/Lithnet/AccessManagerAgent/Core` - This directory contains the application binary files.

`/Library/Logs/Lithnet/AccessManagerAgent/` - This directory contains the agent log files.

`/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist` - The launchd entry for the agent, symlinked from the application directory.


# Setting up Authentication


# Setting up authentication with ADFS

The following guide will assist you in configuring your application to use Active Directory Federation Services (ADFS) for authentication.

## Part 1: Configure a new replying party trust in ADFS

1. Open the ADFS console, expand `Trust Relationships`, right-click `Relying Part Trusts` and select `Add relying-party trust`
2. Click `Next` and select `Enter data about the relying party manually`
3. Specify `Lithnet Access Manager` as the display name
4. Select `AD FS profile`
5. Skip the encryption certificate step
6. Check the box to `Enable support for the WS-Federation Passive protocol`. Specify the base URL where your Lithnet Access Manager is hosted (e.g. `https://accessmanager.lithnet.local/`)
7. Skip the page prompting you to add additional relying-party trust identifiers
8. Optionally, configure multifactor authentication for the trust, and follow the remaining pages through to completion
9. Edit the claim rules for the application. Add a new issuance transform rule to `Send LDAP attributes as claims`
10. Set 'Issue UPN' as the claim rule name. Select `Active Directory` as the attribute store, `User-Principal-Name` as the `LDAP Attribute` and `UPN` as the outgoing claim type

## Part 2: Configure Lithnet Access Manager

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-91b4504c1ccb4ebad778dbea2078308aed13a8cd%2Fui-page-authentication-wsfed-adfs.png?alt=media)

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `App configuration\User Authentication` page
3. Select `WS-Federation` as the authentication provider type
4. In the `metadata` field, provide the metadata URL for your ADFS server (usually something like `https://adfs.lithnet.local/FederationMetadata/2007-06/FederationMetadata.xml`)
5. Enter the base URL of your application in the `Realm` field.

## Alternative claim mapping

AMS maps `upn`, `sid` and `onprem_sid` claims automatically if they are found in the response from the IDP.

If you need to use an attribute other than those, you can configure a custom claim mapping using [PowerShell](/ams/help-and-support/powershellmodule/add-amsidpclaimmapping)


# Setting up authentication with Microsoft Entra ID

The following guide will assist you in configuring your application to use Microsoft Entra for authentication.

## Part 1: Configure a new application in Entra ID

Follow the steps in [Creating an Entra app for Access Manager](/ams/help-and-support/advanced-help-topics/creating-an-entra-app) to create the app registration for Access Manager. Take note of the tenant ID, client ID and secret created here as they will be used in the next step.

Ensure that the appropriate API permissions have been granted for the `User authentication using OpenID Connect` scenario.

## Part 2: Configure Lithnet Access Manager

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `App configuration\User Authentication` page
3. Select `Open ID Connect` as the authentication provider
4. Use the `application id` obtained from the Entra ID setup process as the `client ID` value
5. Specify the `client secret` obtained from the Entra ID setup process.
6. Set the authority as appropriate for your tenant (e.g. for `lithnet.io` it would be `https://login.microsoftonline.com/lithnet.io`)

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-60f2ede9ef0839205051b1301b0668aeedc8fe52%2Fui-page-authentication-oidc-azure.png?alt=media)

## Part 3: Enable multifactor authentication

For further security, you can set up a conditional access policy to require multifactor authentication for the app

## Alternative claim mapping

AMS maps `upn`, `sid` and `onprem_sid` claims automatically if they are found in the response from the IDP.

If you need to use an attribute other than those, you can configure a custom claim mapping using [PowerShell](/ams/help-and-support/powershellmodule/add-amsidpclaimmapping)


# Setting up authentication with Okta

The following guide will assist you in configuring your application to use Okta for authentication.

## Configure a new application in Okta

1. Log into the Okta admin console with administrative credentials, select `Applications` then `Applications`
2. Click `Create app integration`
3. Select `Open ID Connect` as the sign in method and `Web application` as the application type
4. Enter `Lithnet Access Manager` or another suitable application name and optionally provide a logo
5. Ensure that `authorization code` is the selected grant type
6. For the `sign in redirect URI`, enter the base URL where your Lithnet Access Manager app is hosted followed by `/auth/` (e.g. `https://accessmanager.lithnet.local/auth/`)
7. Set the `sign-out redirect URI` to your base URL, and append `/auth/logout` to the end of it (e.g. `https://accessmanager.lithnet.local/auth/logout`)
8. Assign the appropriate users to the app and save the new app
9. From the new app page, copy the `client ID` and `client secret` value for use later in the setup process
10. Select `Directory` from the main menu bar, and select `Profile editor`. Find the `Lithnet Access Manager` app in the list, and click the app name to open the profile editor.
11. Click `Add attribute` and create a new attribute with a display name and variable name of `upn`, of data type `string`. Select `attribute required` and select `personal` as the attribute type. Save the new attribute
12. Click the `Mappings` button. Scroll down until you fine the `upn` attribute in the right hand app attributes column, and on the left side, select the Okta attribute that contains the Active Directory UPN (e.g. aduser.userPrincipalName). Change the arrow to `Apply mapping on user create and update`

## Configure Lithnet Access Manager

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `App configuration\User Authentication` page
3. Select `Open ID Connect` as the authentication provider
4. Enter the URL of your Okta tenant in the `Issuer/Authority` field
5. Enter the client ID and secret obtained from the Okta setup process

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-e8936ec3e275936f943b671b63e25deeca73aadb%2Fui-page-authentication-oidc-okta.png?alt=media)

## Enable multifactor authentication

We strongly recommend modifying your application sign-on policy to require multifactor authentication for the use of this app.

## Alternative claim mapping

AMS maps `upn`, `sid` and `onprem_sid` claims automatically if they are found in the response from the IDP.

If you need to use an attribute other than those, you can configure a custom claim mapping using [PowerShell](/ams/help-and-support/powershellmodule/add-amsidpclaimmapping)


# Setting up smart card authentication

Certificate-based authentication is provided by Access Manager, with the optional support for requiring smart-card authentication.

Certificates must contain a `principal name` attribute in their `Subject Alternative Names` which specifies the user's UPN as found in Active Directory.

Limited support is available for use of altSecurityIdentities in cases where certificates are used without a UPN, however these are not supported outside the forest where AMS is located.

## Configuring Access Manager

To use smart card authentication, where the smart cards are issued by an Active Directory-integrated certificate authority, configure Access Manager as follows.

1. Open the Lithnet Access Manager Service Configuration Tool
2. From the `App configuration/User authentication`, select `Smart card or other certificate` as the authentication provider
3. Select `Require smart card login extended key usage`
4. Select `Trust only Enterprise CAs registered in this domains NTAuth store`

![authentication\_smart card](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9907d78ff9d94e4cab151487c13edbe1bae36956%2Fui-page-authentication-smartcard.png?alt=media)

More advanced scenarios are supported through the use of being able to provide your own additional mandatory EKUs, or restricting authentication to specific issuers. Seek advice from your internal team that manages smart card issuance to if you are not sure if any of these settings are required.

## Identity resolution mode

In line with the certificate-based authentication changes announced by Microsoft in [KB5014754](https://support.microsoft.com/en-us/topic/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers-ad2c23b0-15d8-4340-a468-4d4f3b188f16), Access Manager by default now only accepts certificates containing the user's SID in an extension with OID `1.3.6.1.4.1.311.25.2`, or contained in a [SAN URL extension with the prefix](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pkca/e8fd2c1d-50d3-493a-9b58-5e453850c567) `tag:microsoft.com,2022-09-14:sid:`.

If you are using older-style certificates, you need to select `Enable weak identity bindings` and select `enable UPN mapping`.

## Enabling altSecurityIdentities

If you do not use the SID or UPN fields in the certificate, and use the altSecurityIdentities capability in Active Directory to support certificates without a UPN, you'll need to perform some additional steps in AMS to enable this support.

The caveat with this implementation is that this only works in the forest that the AMS service is located within. As web-based certificate authentication happens at the TLS level, AMS is unable to prompt for a username or domain hint. Therefore, AMS can only search the local global catalog for the altSecurityIdentity values.

In line with the [Microsoft implementation](https://docs.microsoft.com/en-us/windows/security/identity-protection/smart-cards/smart-card-certificate-requirements-and-enumeration) for altSecurityIdentities, AMS searches the directory for a user match in the following order

```
X509:<I><S>^          Issuer and subject
X509:<S>*^            Subject
X509:<I><SR>          Issuer and serial number
X509:<SKI>            Subject key identifier
X509:<SHA1-PUKEY>     SHA1 public key
X509:<RFC822>*^       Email address 
```

> (\*) Use of these altSecurityIdentity types requires that certificate issuer validation against the NT Auth store is enabled

> (^) These altSecurityIdentity types are considered 'weak bindings' and require the use of the `Enable weak identity bindings` option.

## Certificate Forwarding

In certain scenarios - such as Access Manager running behind a TLS-terminating load balancer - certificate authentication may not work out of the box. Because the TLS connection is re-encrypted before it reaches Access Manager, the client certificate is not passed along to the server itself.

However, some load balancers or reverse proxies include a feature called 'Certificate Forwarding', where the load balancer validates the certificate, and passes the user's public key along as a header to the backend server (in this case, Access Manager).

This option allows you to specify a header which Access Manager will use to extract user certificates from for authentication.

It is important to note that, unless properly secured, any user may send this header to the Access Manager server - allowing impersonation. Therefore, Access Manager requires that you specify particular load balancers or proxies you expect to be using this feature. By default, even when enabled, Access Manager will reject all certificate headers unless the allowlists are populated.

### Examples

#### Nginx Reverse Proxy

1. Configure the server to receive client certificates with the [ssl\_verify\_client directive](https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_verify_client).
2. Configure the `X-Client-Cert` header to be forwarded to Access Manager.

This forwards the [$ssl\_client\_escaped\_cert](https://nginx.org/en/docs/http/ngx_http_ssl_module.html#var_ssl_client_escaped_cert) variable, which is a URL-encoded version of the client certificate:

````
```
# To avoid a client falsifying the header, first unset it.
proxy_set_header Accept-Encoding "";
proxy_set_header X-Client-Cert $ssl_client_escaped_cert;
```
````

#### Citrix ADC

You can follow [this guide](https://support.citrix.com/article/CTX217167/how-to-pass-client-certificate-to-backend-applications-that-requires-client-certificate-for-user-authentication-sslbridge) to insert to forward the client certificate as a header to Access Manager.


# Setting up integrated windows authentication

The following guide will assist you in configuring your application to use Integrated Windows Authentication (IWA).

{% hint style="warning" %}
Note, that we recommend that you use a strong authentication mechanism such as OpenID Connect, where you have the ability to enforce multifactor authentication on users attempting to access your application. Access Manager fully supports modern OIDC providers such as [Microsoft Entra ID](/ams/configuration/setting-up-authentication/setting-up-authentication-with-azure-ad) and [Okta](/ams/configuration/setting-up-authentication/setting-up-authentication-with-okta).
{% endhint %}

## Part 1: Configure the SPN

To ensure kerberos authentication works correctly you'll need to register an SPN for the Access Manager service account.

The SPN must be in the format of `HTTP/{dnsName}` where `{dnsName}` is the external-facing DNS hostname used by the clients.

If this SPN is not set correctly, the following warning will appear in the `Service account` section of the `Host configuration` page. You can use the "Set SPN..." script to correct the problem. ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-1e1b476456c42778a09646841758b009ebffd969%2Fspn-warning.png?alt=media)

## Part 2: Configure Lithnet Access Manager

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-1955613d81f641f5b577267e34044f671aed6442%2Fui-page-authentication-iwa.png?alt=media)

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `App configuration\User authentication` page
3. Select `Integrated windows authentication` as the authentication provider
4. Select `Negotiate` for the authentication scheme.

{% hint style="danger" %}
The use of NTLM and basic auth is not recommended and are provided for testing purposes only.
{% endhint %}

To restrict clients to the use of Kerberos only, disable incoming NTLM authentication for the server using [group policy](https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-restrict-ntlm-incoming-ntlm-traffic).


# Deploying Features


# Setting up RapidLAPS

This guide will walk you through configuring RapidLAPS in your environment.

*RapidLAPS* integrates into the Windows login screen and admin consent prompts, allowing you to speed up the process when using the LAPS password.

With *RapidLAPS*, by simply scanning a QR code, or visiting the Access Manager web app and entering a PIN, you can remotely authorize and log into any LAPS-enabled computer without ever knowing the LAPS password. Once authorized, Access Manager securely transports the LAPS password between the server and the client, saving you from having to type out a long and complicated password.

Using RapidLAPS requires the Access Manager agent to be installed on your computers, but you do not need to configure the Access Manager agent to manage the LAPS password. RapidLAPS works whether you are using Windows LAPS, legacy LAPS, or the Access Manager agent to manage your LAPS passwords.

{% hint style="info" %}
RapidLAPS is only available on [supported Windows operating systems](/ams/installation/system-requirements).
{% endhint %}

## Step 1: Enable agent support on the AMS server

Follow the steps in [Enabling agent support on the AMS server](/ams/installation/installing-the-access-manager-agent/enabling-agent-support)

## Step 2: Deploy the Access Manager agents

Deploy the [Access Manager agent to your devices](/ams/installation/installing-the-access-manager-agent).

## Step 3: Configure Access Manager Agent policy

AMS uses *agent policies* to configure the behavior of Lithnet Access Manager agents.

From the `Access Manager agent/Agent policies/Windows policies` page, find or create a policy that applies to the computers you want to enable RapidLAPS for.

See the guide on [creating and managing policies](/ams/help-and-support/advanced-help-topics/setting-up-agent-policies) for more information on policy targeting and creation.

## Step 4: Configure RapidLAPS scenarios

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-40366b757b8b9b8de8cf5e083a5c62f9c079005a%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-rapidlaps.png?alt=media)

First, select which scenarios in Windows you wish to enable RapidLAPS.

| Scenario                       | Description                                                                                                                                                                                                                                              |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enable RapidLAPS for logins    | When configured, this setting will add a "Login with RapidLAPS" tile to the Windows login screen, allowing login to the local administrator account via Access Manager.                                                                                  |
| Enable RapidLAPS for elevation | When configured, this setting will add an "Elevate with Lithnet RapidLAPS" tile to the Windows admin consent (UAC)() prompt, allowing elevation of applications, installers, and system actions with the local administrator account via Access Manager. |

## Step 5: Configure prompts for user input

Optionally, you can present users with a series of prompts whenever they login or elevate with RapidLAPS. Responses to these prompts are delivered to the server if a login or elevation is attempted, and are presented to the user authorizing the request in the Access Manager web app (as well as being stored in the audit log).

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-6980f950e2ba35ade89452423d170e1f20d35a00%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-rapidlaps-edit-ui-prompt.png?alt=media)

The following options are configurable for user prompts:

* **Usage scenarios**: Configure whether the prompt is shown with RapidLAPS requests at either the *login screen* or during *elevation*.
* **Data type**: The type of prompt
  * *Text*: A simple text-box
  * *Multiline text*: A text box with multiple lines for long-form responses
  * *Drop-down list*: A drop down box, where a user can select an option from a list
  * *Checkbox*: A simple checkbox
  * *Label*: A piece of text that will appear in the prompt window (e.g., for providing organization-specific guidance)
* **Helper text**: An optional message presented alongside the prompt
* **Required**: Whether the specific prompt is required
* `Text` and `Multiline text`-specific fields
  * **Minimum length**: The minimum length of the text input; set to "0" to disable length requirements
  * **Validation regex**: An optional regular expression for validating text
  * **Validation failure message**: An optional message to present to users when the validation requirements are not met
* `Drop-down list`-specific fields
  * **List options**: A list of options a user can select in the drop down

## Step 6: Create computer authorization rules for RapidLAPS

Once the policy is configured, you can now configure individual users and groups who can approve RapidLAPS logins or elevations using the AMS configuration tool.

From the `Authorization rules/Computers` page, select `Add...` to create a new authorization rule. Select the container containing the computers you wish to allow RapidLAPS access to, and provide a friendly description for this rule. This will appear in audit logs if a user is approves or denies a request.

Select `Edit Permissions...` to open the ACL editor. Assign the appropriate users and groups permission to allow RapidLAPS login and/or elevation approval access.

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

If you'd like to be notified when someone requests RapidLAPS login or elevation, select the notification channels you'd like to send to for success and failure events.

## Step 7: Validate access

Once the policy has had time to propagate to the device, you can begin the validation process. If the policy has been processed, on the login screen, you will see a `Login with RapidLAPS` tile on the bottom left corner of the screen.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9c28298922a30a8ff1d43cae1331e3c9bcac2a36%2Frapidlaps-login-screen.png?alt=media)

Select the tile and click the arrow to login with RapidLAPS. If you have configured any user prompts, complete them on the following page and click `Submit`. The QR code will appear which you can scan with a mobile device, or visit the AMS web app using the URL shown, and enter the PIN.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9f0fc32bf222dcc1db45993e43bb0f65acaf5116%2Frapidlaps-qr.png?alt=media)

Once you have authorized the request in the web app, the login should proceed as normal.

If the login process does not work, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server and agent logs to help understand and resolve the issue.


# LAPS

Lithnet Access Manager provides two distinct LAPS capabilities

## Web-based access to LAPS passwords managed by Microsoft LAPS

If you have Microsoft LAPS deployed (either the legacy LAPS or the new Windows LAPS), you can simply user access to those LAPS passwords using the Access Manager Service. AMS allows you to provide a highly secure, mobile friendly, consistent user interface, for accessing LAPS passwords across you organization, no matter what tool you use to manage them.

* [Setting up access to Microsoft LAPS passwords stored in Active Directory](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps)
* [Setting up access to Microsoft LAPS passwords stored in Microsoft Entra ID](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad)

## Universal LAPS access and passphrase support with Lithnet LAPS

Access Manager comes with an agent that can manage LAPS passwords in place of the Microsoft agent. Lithnet LAPS gives you the option of using much more friendly passphrases, instead of long and complicated passwords. It also works in places that Microsoft LAPS does not. We have full support for Windows devices that are domain joined, Entra-joined, or even stand alone. We also support managing the root password on macOS and Linux devices.

* [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)

## Go one better than LAPS

However, you can go one better again, and do away with having to touch LAPS passwords in your environment entirely! Check out our RapidLAPS functionality for a fully passwordless LAPS experience.

* [Setting up Lithnet RapidLAPS](/ams/configuration/deploying-features/setting-up-rapid-laps)


# Setting up Microsoft LAPS for Active Directory

Lithnet Access Manager provides a convenient web-based interface for accessing local admin passwords generated by both the legacy Microsoft LAPS client (using the ms-mcs-AdmPwd attribute), and the new Windows LAPS client (using the msLAPS-\* attributes) built into Windows.

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

This guide focuses on setting up support for Microsoft LAPS passwords stored in Active Directory. See our other guide for passwords stored in [Microsoft Entra](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad).

## Step 1: Delegate Microsoft LAPS password permissions

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-efce695a0de37ec54fe7deb532f79132216d35a6%2Fui-page-directory-configuration-active-directory-microsoft-laps.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 `Directory configuration/Active Directory/Microsoft LAPS` 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 encryption permissions (New Windows LAPS)

If you are using the new Windows LAPS along with the encrypted password functionality, then as well as delegating access to read the objects from the directory, you need to ensure the AMS service account is permitted to decrypt the passwords. Modify the Windows LAPS group policy, to ensure that the AMS service account is a member of the `Authorized password decryptor` group specified in the `Configure authorized password decryptors` setting of the `Computer configuration\Administrative Templates\System\LAPS` policy.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-b5366c407c3a7c1a41231f6278fdc431a82aaae4%2Fgroup-policy-microsoft-laps-encryptors.png?alt=media)

{% hint style="info" %}
When configuring the `Configure authorized password decryptors` policy setting, you must explicitly include all users and groups that should have permission to decrypt LAPS passwords. This includes any additional users beyond the AMS service account that you want to grant decryption capabilities to.

We strongly recommend including the `Domain admins` group in the authorized decryptors list to ensure administrative access is maintained for break-glass and emergency scenarios.

It is important to understand that when the `Configure authorized password decryptors` policy setting is configured with any value, it overrides the default behavior. By default, when this policy is not configured, the `Domain admins` group automatically has decryption permissions. However, once you specify any group or user in this policy setting, the default permissions are no longer applied, and you must explicitly include the `Domain admins` group (or any other required administrative groups) in the authorized decryptors list to maintain their access.
{% endhint %}

## Step 3: Assign access

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

From the `Authorization rules/Computers` page, select `Add...` to create a new rule. 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://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-f89afdf7ba3d69ed8abc938626703b84ff4325d1%2Fui-page-authorization-rules-computers-edit-rule-rule-settings-laps.png?alt=media)

Expand the `Access control` section and select `Edit Permissions...` to open the ACL editor.

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

Note that legacy 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.

## Step 4: Validate access

Log in to the Access Manager web app as an authorized user, and request access to the password for a computer. If you have performed the steps correctly, you should be able to see the machine's password.

If passwords cannot be retrieved, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server logs to help understand and resolve the issue.


# Setting up Microsoft LAPS for Entra

Lithnet Access Manager provides a convenient web-based interface for accessing local admin passwords that have been stored in Entra ID by Windows LAPS.

This guide assumes that you have the Windows LAPS agent deployed and configured appropriately. Test access to the LAPS passwords using the Entra portal first to make sure it is configured correctly.

This guide focuses on setting up support for Windows LAPS passwords stored in Microsoft Entra. See our other guide for passwords stored in [Active Directory](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps).

## Step 1: Configure a new application in Entra ID

Follow the steps in [Creating an Entra app for Access Manager](/ams/help-and-support/advanced-help-topics/creating-an-entra-app) to create the app registration for Access Manager. Take note of the tenant ID, client ID and secret created here as they will be used in the next step.

Ensure that the appropriate API permissions have been granted for the `Accessing LAPS passwords stored in Entra` scenario.

## Step 2: Configure the service account details in Access Manager

1. Open the Lithnet Access Manager Service Configuration Tool
2. Select the `Directory configuration/Microsoft Entra` page
3. Press the `Add...` button to add a new tenant configuration
4. Add the client ID, secret, and directory/tenant ID in the fields provided
5. Save the tenant configuration

{% hint style="info" %}
You may need to wait a minute or two for the secret and delegation to become active
{% endhint %}

## Step 3: Assign access

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

From the `Authorization rules/Computers` page, select `Add...` to create a new rule. Select the Entra ID tenant, device group, or computer you want to assign access to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

Expand the `Access control` section and select `Edit Permissions...` to open the ACL editor.

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

{% hint style="info" %}
When a computer is using Microsoft's Windows LAPS agent, and it is configured to store its password in Microsoft Entra, then forced password rotation by Access Manager is not possible. Entra ID does not provide an API that AMS can use to indicate to the machine that the password should be rotated.

You can however use the built-in [PostAuthenticationActions and PostAuthenticationResetDelay policy settings](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-management-policy-settings#postauthenticationresetdelay) to trigger the password change after logon.
{% endhint %}

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.

## Step 4: Validate access

Log in to the Access Manager web app as an authorized user, and request access to the password for a computer. If you have performed the steps correctly, you should be able to see the machine's password.

If passwords cannot be retrieved, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server logs to help understand and resolve the issue.


# Setting up Lithnet LAPS

The Access Manager agent can manage the local admin password for your Windows, macOS, and Linux devices, no matter if they are joined to Active Directory, Entra ID, or are managed by some other mechanism.

The passwords are encrypted and stored on the Access Manager Server to allow retrieval via the Access Manager web app.

Lithnet LAPS provides several benefits over the Microsoft LAPS offerings

* Support for using passphrases as LAPS passwords
* Support for Windows devices that are not joined to an Active Directory or Entra ID tenant
* Support for macOS devices
* Support for Windows devices

Note, you do not need to use Lithnet LAPS to use the RapidLAPS feature if you are already using Microsoft LAPS. You will however still need to install the Lithnet Access Manager agent.

## Step 1: Enable agent support on the AMS server

Follow the steps in [Enabling agent support on the AMS server](/ams/installation/installing-the-access-manager-agent/enabling-agent-support)

## Step 2: Deploy the Access Manager agents

Deploy the [Access Manager agent to your devices](/ams/installation/installing-the-access-manager-agent).

## Step 3: Create an encryption certificate

Access Manager requires an *encryption certificate* to be configured, to facilitate encryption of sensitive passwords.

From the `Access Manager Agent/Password settings` page, press the `Generate new...` button, to create a new encryption certificate.

{% hint style="warning" %}
Backup this certificate when prompted and store it in a safe place. If you lose this certificate, you will not be able to decrypt any passwords stored in the directory. There are no other recovery options.
{% endhint %}

{% hint style="info" %}
These certificates can be generated by AMS itself, or imported. Depending on your threat model, you may elect to store this certificate in other cryptographic backend supported by Windows CNG, such as a hardware security module (HSM).
{% endhint %}

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-02710fa15d352bdeaa37fb1067717a5f9c3c5f6c%2Fui-page-access-manager-agent-password-settings.png?alt=media)

## Step 4: Configure Access Manager Agent policy

AMS uses *agent policies* to configure the behavior of Lithnet Access Manager agents.

Select the appropriate operating system policy section from under the `Access Manager agent/Agent policies` section of the config app.

Find or create a policy that applies to the computers you want to manage the password for.

See the guide on [creating and managing policies](/ams/help-and-support/advanced-help-topics/setting-up-agent-policies) for more information on policy targeting and creation.

## Step 5. Enable password management

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-3c69c2571fc23fdffd55da1a16529d04b5adc203%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-passwords.png?alt=media)

To configure the agent to manage and automatically, rotate the local administrator password on the device, tick the "Enable password management" box

{% hint style="info" %}
If Microsoft LAPS is configured to manage the password on a device, the Access Manager Agent's password change capability will be disabled
{% endhint %}

## Step 6. Configure the local account to manage

Next, determine the local account you would like the Access Manager Agent to manage:

* If `Built-in admin account` is selected, the Access Manager Agent will manage the password of the OS-specific "default" admin account:
  * For Windows agents, this means the [default Windows "Administrator" account](https://learn.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts#administrator)
  * For Unix-based operating systems (e.g. macOS and Linux), this means the `root` account.
* If `Other account` is selected, the Access Manager agent will manage the password of the account with the name specified in the field below.

You can optionally configure the following settings for managing local accounts:

* `Create account if it does not exist`: If this setting is enabled, the Access Manager Agent will create a local account with the specified name if it does not exist on the device.
  * Note: This setting is unavailable for Linux.
* `Enable account if it is disabled`: If this setting is enabled, the Access Manager Agent will automatically enable the managed administrator account if it is disabled.
  * Note: This setting is unavailable for Linux.
* `Remove exiting LAPS passwords from Active Directory if present`: If this device's local administrator password was previously stored in Active Directory, this setting will attempt to clear existing passwords once the agent checks in (if applicable).

## Step 7. Configure password history settings

Access Manager can keep historical local administrator passwords, which may be useful if you need to restore machines from backup.

You can optionally configure the following settings for historical password retention:

* `Maximum password age (days)`: The maximum number of days before the password must be rotated. For example, if this is set to 7, then the password would be rotated after 7 days.
* `Number of previous passwords to keep`: The number of historical passwords to store in the Access Manager database.
* `Number of days to keep previous passwords`: The number of days to keep historical passwords for; setting this field to "0" disables aging out of historical passwords.

## Step 8. Configure password generation

The Access Manager Agent can generate either passwords, or passphrases.

### Generating passwords

Set the `Generation mode` to `Password`.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-2c2cc6349b840c574b65a471bcd94aa82a30d268%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-passwords-password.png?alt=media)

Next, configure the different parameters for passwords the Access Manager Agent will generate.

Use the `Generate` button at the bottom of the page to preview a password generated using the settings you selected.

{% hint style="info" %}
It is important to ensure that the configured settings are compatible with any local account password requirements you may have in your environment.
{% endhint %}

### Generating passphrases

Set the `Generation mode` to `Passphrase`.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5d376511ee85a66c2868c7a4f9ad57b9e42bdf65%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-passwords-passphrase.png?alt=media)

Next, select the word list that the Access Manager will use to generate passphrases by clicking the `Select` button next to the word list box.

{% hint style="info" %}
For more information on configuring your own word lists, see the [managing word lists](/ams/help-and-support/advanced-help-topics/managing-wordlists) guide.
{% endhint %}

Finally, configure the different parameters for passphrases the Access Manager Agent will generate.

Use the `Generate` button at the bottom of the page to preview a password generated using the settings you selected.

## Step 10: Assign access

Once the agent is deployed, and the policy configured, you can now configure access to individual users and groups using the AMS configuration tool.

From the `Authorization rules/Computers` page, select `Add...` to create a new target. Select the tenant, directory, device group, or computer you want to assign access to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

Select `Edit Permissions...` to open the ACL editor. Assign the appropriate users and groups permission to read the local admin password.

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

You can optionally choose to expire the local admin password a period of time after it has been accessed. This will cause the Access Manager Agent to generate a new password after its next check-in time.

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.

## Step 11: Validate access

Log in to the Access Manager web app as an authorized user, and request access to the password for a computer. If you have performed the steps correctly, you should be able to see the machine's password.

If passwords cannot be retrieved, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server logs to help understand and resolve the issue.


# Just-in-time Authentication (JIT)

Lithnet Access Manager supports granting access to computers and groups using a simple, just-in-time (JIT) access model.

Rather than administrators having permanent access to computers or groups, they can use Access Manager to grant themselves access on a temporary as-needed basis.

By reducing permanent administrators, you can rapidly increase the difficulty of a successful lateral-movement based attack in your environment.

Access Manager supports two forms of JIT:

* [JIT for Computers](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-computers) allows you to configure administrators to request just-in-time access to specific machines.
* [JIT for Roles](/ams/configuration/deploying-features/setting-up-jit/setting-up-jit-for-roles) allows you to define a role, based on an Active Directory group, that users are allowed to request access to on a temporary basis.


# Setting up JIT for computers

Lithnet Access Manager supports granting temporary administrative access to computers using a simple just-in-time (JIT) access model.

Rather than having administrators being a permanent member of each computer's local administrator group, they can use Access Manager to grant themselves administrative access on a temporary and as-needed basis.

By removing all permanent administrators from your computers, you increase the difficulty of a successful lateral-movement based attack.

At a high level, in order to enable just-in-time access the following tasks need to be completed;

1. An empty AD group is created for each computer. This is the group used to grant JIT access.
2. Those groups are each added to the local administrators group of their corresponding computer
3. All members except for the built-in administrator account and the JIT group are removed from the local administrators group
4. The members who were removed are then granted access through an Access Manager authorization rule.

## Step 1: Prepare the Active Directory

Access Manger's JIT functionality works with any version of Active Directory from Windows Server 2003 and above, but the underlying mechanism used depends on the forest functional level.

### Windows Server 2016 forest functional level and above where PAM feature is enabled

Active Directory forests, with Windows 2016 or higher forest functional levels, can take advantage of a new feature called time-based membership. This has several advantages over the dynamic group model. In this model when a user is granted JIT access to a role, Access Manager adds the user directly to the JIT group, but it can tell Active Directory that the group membership itself is time-limited. The user is added to the group with a time-to-live value and after that time, the user is automatically removed from the group by Active Directory.

Time-based membership is part of the [Privileged Access Management optional forest feature](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/d079eee8-1bac-4b03-86e4-506a21450905) and must be explicitly enabled.

You can use the `Enable PAM feature in forest` script, available on the \`Directory configuration/Active Directory/Just-in-time access' page to enable this feature in your forest.

### Other domains

If the Active Directory PAM forest feature is not enabled or not available, Access Manager will add the user to the JIT group, and use its internal scheduler to remove the user from the group when the time has expired.

## Step 2: Creating the JIT groups

Best practice for JIT is that each computer that you want to enable JIT for, has a dedicated JIT group created for it in AD. The Access Manager Service contains a feature that allows you to automatically create a JIT group for each computer.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-179d5b4d3a5307f777475b5351f8dd134f4d8ae2%2Fui-page-directory-configuration-active-directory-jit.png?alt=media)

From the `Directory Configuration/Active Directory/Just-in-time access` page, you can enable automatic JIT group creation. Click `Add` to create a new mapping.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5c4f9ea9fa1fe374582a6f57f10dac5b80cc6bb1%2Fui-page-directory-configuration-active-directory-jit-group-mapping.png?alt=media)

Select the OU that contains the computers you want to create JIT groups for and select a different OU where the JIT groups should be created.

{% hint style="warning" %}
It is recommended that the JIT group OU be dedicated to Access Manager JIT groups only. If the OU contains other groups, and the `delete groups in this OU that do not have matching computers` option is selected, those other groups will be deleted by Access Manager.
{% endhint %}

{% hint style="danger" %}
Given that anyone with access to modify group membership in this OU can effectively become an admin of any computer managed by JIT, you must take care to secure the OU and ensure only Access Manager has access to the objects within it.
{% endhint %}

Select a group name template, making sure to include the `%computerName%` variable. For each computer found in the specified OU, AMS will use this template to create the group. For a computer called `PC1`, a template of `JIT-%computerName%` will result in the group being called `JIT-PC1`. You'll need to use this name template name when creating the authorization rule that grants users access to these computers.

Once you have saved the mapping, use the `Delegate permission` script on the JIT Access page to ensure AMS can manage group objects in the specified container.

Note, using AMS specifically to create JIT groups is not required for JIT to work. If you have an existing group management tool you'd prefer to use, you can use that instead. Just ensure AMS has access to modify the group membership for those groups.

## Step 3: Add the JIT group via group policy

Using the group policy editor, create a new group policy object and link it to the OU containing your computer objects. Open the policy and navigate to `Computer Configuration`, `Preferences`, `Control Panel Settings`, `Local Users and Groups`.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-1f01072ad984065f0edc0cb6890e7938451a43c4%2Fgroup-policy-local-users-and-groups.png?alt=media)

Right-click the `Local users and groups` node, and select `New`, `Local group`. Click the drop-down arrow on the `Group name` field, and select `Administrators (built-in)`.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-48101f663c94dbaedb1b9c68ce7c4eeb39043d3f%2Fgroup-policy-local-users-and-groups-new-group.png?alt=media)

Click the `Add` button, and the group, using the `%computername%` variable, specify the templated name of the group set in step 2.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-ff7351c40caf8ab140016ec5900b1da524fd94ee%2Fgroup-policy-local-users-and-groups-add-member.png?alt=media)

Add the built-in admin account, by creating a new member entry for `Administrator`.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-cf4e63835b9a09e6ecb9b80dc38fd53907daaafb%2Fgroup-policy-local-users-and-groups-complete.png?alt=media)

If you are ready to enforce JIT access, select the `Delete all member users` tick box, as well as the `Delete all member groups`. This will ensure that only the built-in administrator, the JIT group and any members specified in this policy are in the local administrators group.

It is recommended that you only turn this on after appropriate testing, and once all existing administrators have been granted access through an AMS authorization rule.

If you have additional users or groups that should also be in the local administrators group, then you can add those to the list. Remember, in order to prevent lateral movement with administrator rights, no accounts should have permanent administrative rights. Use this feature temporarily, to assist in an orderly transition to removing permanent admin rights, or in very limited circumstances.

{% hint style="info" %}
If you are currently using the older Windows `Restricted groups` policies, you'll need to convert that membership to use the new group-policy preferences style. The `restricted groups` policy does not allow use of the `%computername%` variable. The functionality provided by restricted groups is available in group policy preferences.
{% endhint %}

## Step 4: Assign access

Once the policy configured you can now configure access to individual users and groups using the AMS configuration tool.

From the `Authorization rules/Computers` page, select `Add...` to create a new authorization rule. Select the OU containing the computers enabled for JIT and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

Select `Edit Permissions...` to open the ACL editor. Assign the appropriate users and groups permission to allow JIT access.

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

You must provide the group name or template in the `Just-in-time access settings` area, as well as the length of time until the access is expired.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-0f0f12c242fa349e72b773a164d0a14d2a6c9360%2Fui-page-authorization-rules-computers-edit-rule-jit-settings.png?alt=media)

If you'd like to be notified when someone requests JIT access, select the notification channels you'd like to send to for success and failure events.

## Step 5: Validate access

Log in to the access manager web app as an authorized user, and request JIT access to a computer. If you have performed the steps correctly, you should be able to log into the server with local administrator rights.


# Setting up JIT for roles

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-777b39409f48f271de2f52ccc6f33e3248829f95%2Fbadge-enterprise-edition-rocket.svg?alt=media) JIT for roles is an [Enterprise edition feature](/ams/access-manager-editions)

Lithnet Access Manager allows you to define a role, based on an Active Directory group, that users are allowed to request access to on a temporary basis.

When a user requests access to a role, they are added to the Active Directory group, and when that access expires, they are removed.

## Step 1: Prepare the Active Directory

Access Manger's JIT functionality works with any version of Active Directory from Windows Server 2003 and above, but the underlying mechanism used depends on the forest functional level.

### Windows Server 2016 forest functional level and above where PAM feature is enabled

Active Directory forests, with Windows 2016 or higher forest functional levels, can take advantage of a new feature called time-based membership. This has several advantages over the dynamic group model. In this model when a user is granted JIT access to a role, Access Manager adds the user directly to the JIT group, but it can tell Active Directory that the group membership itself is time-limited. The user is added to the group with a time-to-live value and after that time, the user is automatically removed from the group by Active Directory.

Time-based membership is part of the [Privileged Access Management optional forest feature](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/d079eee8-1bac-4b03-86e4-506a21450905) and must be explicitly enabled.

You can use the `Enable PAM feature in forest` script, available on the \`Directory configuration/Active Directory/Just-in-time access' page to enable this feature in your forest.

### Other domains

If the Active Directory PAM forest feature is not enabled or not available, Access Manager will add the user to the JIT group, and use its internal scheduler to remove the user from the group when the time has expired.

## Step 2: Delegate Active Directory permission

You'll need to make sure the AMS service account has permission to read and write to the `member` attribute of any groups that you assign to roles.

## Step 3: Assign access

You can now configure access to individual users and groups using the AMS configuration tool.

From the `Authorization rules/Roles` page, select `Add...` to create a new authorization rule. Provide a role name, and select the target group that will be used to grant access to this role. In the description field, provide a friendly description that will be seen be users when they select the role to claim.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-2fd0559f8ca55ae7edd5677916b6eae38833466b%2Fui-page-authorization-rules-roles-edit-rule-rule-settings.png?alt=media)

In the `Access Control` section, select `Edit Permissions...` to open the ACL editor. Assign the appropriate users and groups permission to allow JIT access.

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-83c0ea531b0ff429fa7e2acb37cc44bdb7837b71%2Fui-page-authorization-rules-roles-edit-rule-access-control.png?alt=media)

Specify the maximum duration of time the user can hold the role for, and set the default duration that will be pre-filled for them when they make the access request.

You can optionally allow the user to extend their access before it expires.

If you'd like to be notified when someone requests JIT access, select the notification channels you'd like to send to for success and failure events.

## Step 4: Validate access

Log in to the Access Manager web app as an authorized user, click on the `Roles` page and request JIT access to a role.


# Setting up BitLocker access

The Access Manager service allows you to retrieve BitLocker recovery keys through the same friendly web interface used to access LAPS passwords.

AMS can retrieve passwords that are stored natively in Active Directory by Windows. Unfortunately, Microsoft does not allow a way for Access Manager to retrieve BitLocker recovery passwords stored in Entra ID.

However, you can deploy the Access Manager Agent to *any* Windows device, and use it to backup the BitLocker recovery keys to the Access Manager server itself.

* [Setup access to BitLocker recovery passwords stored in Active Directory](/ams/configuration/deploying-features/setting-up-bitlocker/setting-up-bitlocker-ad)
* [Setup BitLocker recovery key backup and access using the Access Manager Agent](/ams/configuration/deploying-features/setting-up-bitlocker/setting-up-bitlocker-ams)


# Setting up access to BitLocker keys stored in Active Directory

You can access BitLocker recovery passwords using Lithnet Access Manager's web app. No specific configuration is needed, other than delegating permission for the AMS service account to read those passwords from Active Directory.

## Step 1: Delegate permissions

![!](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-4d478f42b1996e4be76bc4beb5322b533e08c895%2Fui-page-directory-configuration-active-directory-bitlocker.png?alt=media)

From the `Directory configuration/Active Directory/BitLocker` page, click the `Delegate BitLocker Permissions` button to access a script that will modify the necessary AD permissions to allow the AMS service account to read recovery passwords.

## Step 2: Assign access

Create an authorization rule, granting permission for your selected users and groups to access the BitLocker recovery passwords for the specified computers.

From the `Authorization rules/Computers` page, select `Add...` to create a new rule. Select the tenant, directory, device group, or computer you want to assign access to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

Expand the `Access control` section and select `Edit Permissions...` to open the ACL editor.

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

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

## Step 4: Validate access

Log in to the Access Manager web app as an authorized user, and request access to the recovery password for a computer. If you have performed the steps correctly, you should be able to see the machine's recovery password.

If passwords cannot be retrieved, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server logs to help understand and resolve the issue.


# Setting up BitLocker recovery key backup and access using the Access Manager Agent

This guide will walk you through setting up the Access Manage agent to backup BitLocker encryption keys, and access them via the AMS web app.

{% hint style="info" %}
BitLocker recovery policies can only be configured for Windows agents.
{% endhint %}

## Step 1: Enable agent support on the AMS server

Follow the steps in [Enabling agent support on the AMS server](/ams/installation/installing-the-access-manager-agent/enabling-agent-support)

## Step 2: Deploy the Access Manager agents

Deploy the [Access Manager agent to your devices](/ams/installation/installing-the-access-manager-agent).

## Step 3: Create an encryption certificate

Access Manager requires an *encryption certificate* to be configured, to facilitate encryption of BitLocker keys.

From the `Access Manager Agent/Password settings` page, press the `Generate new...` button, to create a new encryption certificate.

{% hint style="warning" %}
Backup this certificate when prompted and store it in a safe place. If you lose this certificate, you will not be able to decrypt any passwords stored in the directory. There are no other recovery options.
{% endhint %}

{% hint style="info" %}
These certificates can be generated by AMS itself, or imported. Depending on your threat model, you may elect to store this certificate in other cryptographic backend supported by Windows CNG, such as a hardware security module (HSM).
{% endhint %}

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-02710fa15d352bdeaa37fb1067717a5f9c3c5f6c%2Fui-page-access-manager-agent-password-settings.png?alt=media)

## Step 4: Configure Access Manager Agent policy

AMS uses *agent policies* to configure the behavior of Lithnet Access Manager agents.

From the `Access Manager agent/Agent policies/Windows policies` page, find or create a policy that applies to the computers you want to backup the BitLocker encryption keys for.

See the guide on [creating and managing policies](/ams/help-and-support/advanced-help-topics/setting-up-agent-policies) for more information on policy targeting and creation.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-04022ed223217b85f4ef7c69ce531602f892a1a7%2Fui-page-access-manager-agent-agent-policies-windows-policies-edit-bitlocker.png?alt=media)

## Step 5. Configure the types of keys to backup

Edit the policy, and choose the types of encryption keys you want to back up.

| Setting                                          | Description                                                                           |
| ------------------------------------------------ | ------------------------------------------------------------------------------------- |
| Enable backup of OS drive encryption keys        | Backs up encryption keys for the operating system drive (usually `C:`)                |
| Enable backup of fixed drive encryption keys     | Backs up encryption keys for other fixed drives, excluding the operating system drive |
| Enable backup of removable drive encryption keys | Backs up encryption keys for removable drives, such as USB drives                     |

{% hint style="info" %}
The Access Manager agent only backs up keys for drives that are already encrypted. It will not turn on BitLocker for drives that are not encrypted.
{% endhint %}

## Step 6: Assign access

Create an authorization rule, granting permission for your selected users and groups to access the BitLocker recovery passwords for the specified computers.

From the `Authorization rules/Computers` page, select `Add...` to create a new rule. Select the tenant, directory, device group, or computer you want to assign access to, and provide a friendly description for this rule. This will appear in audit logs if a user is granted access.

Expand the `Access control` section and select `Edit Permissions...` to open the ACL editor.

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

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

## Step 7: Validate access

Log in to the Access Manager web app as an authorized user, and request access to the recovery password for a computer. If you have performed the steps correctly, you should be able to see the machine's recovery password.

If passwords cannot be retrieved, double check that you have followed the steps in this article, and see the [troubleshooting guide](/ams/help-and-support/troubleshooting) for how to find the Access Manager server logs to help understand and resolve the issue.


# Importing authorization rules

If you have an existing Microsoft LAPS deployment, you can search your directory for those users and groups you've assigned permission to read the Microsoft LAPS attribute, and convert those permissions to Access Manager authorization rules.


# Import Microsoft LAPS permissions from Active Directory

If you have an existing Microsoft LAPS deployment, you can search your directory for those users and groups you've assigned permission to read the Microsoft LAPS attribute, and convert those permissions to Access Manager authorization rules.

## Open the import wizard

Using the Lithnet Access Manager Configuration Tool, navigate to the `Authorization rules/Computers` page, and click `Import authorization rules...`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-073b475ae291ea67ab5e3a99aeb197be9e958410%2Fui-page-authorization-rules-computers.png?alt=media)

## Select the import type

Select the LAPS import type, and click `Next`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9f60214dfcb1e02654bc78acad070b91a183b34c%2Fui-page-import-type-laps.png?alt=media)

## Specify discovery settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-feee7cfeda5fc43bc8806f3a0136ce28f9104d3f%2Fui-page-import-container.png?alt=media)

First, select the container that holds the computers that you want to import the permissions from. Access Manager will evaluate the ACLs on each computer object found in this section of the directory tree, looking for users and groups that have `read` and `control access` permissions on the `ms-mcs-admpwd` attribute

When Access Manager finds that a user or group has permission on all computers with an OU, it will create a single access rule at the OU level for that user or group. You can disable this behavior by checking the `Do not consolidate permissions at the OU level` check box. Access Manager will then make an individual authorization rule for every computer that is found.

If there are users and groups that you do not want to import permissions for, add them to the list. The Access Manager service account is automatically pre-added to this list.

You can also choose to ignore certain computers from the import process. For the purposes of permission consolidation, these computers will be treated as if they do not exist at all.

## Specify rule settings

On this page, you can specify the settings for the newly created authorization rules. Choose the permissions you want to assign to the discovered users, and any notifications channels that should apply.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8ac3647c9a3d6eac0b44ec1a68d6ac578240d630%2Fui-page-import-rulesettings.png?alt=media)

## Review discovery results

Once the discovery process has completed, you can review the proposed rules before committing them to the authorization store.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-67767d2aa980e0ff2034299ef328340030e1aa81%2Fui-page-import-results.png?alt=media)

### Merge settings

When a new rule is discovered for a target (computer, group or container) that matches the target of an existing rule, Access Manager will just add the new permissions to the existing rule, rather than create a new rule. You can control this behavior with by unselecting the corresponding checkbox.

When merging rules, settings from the *existing rule* are retained when a conflict is found. For example, if an existing rule is configured to expire LAPS passwords after one hour, and the new rule is configured to expire them after two hours, then the settings from the existing rule are retained. You can alter this behavior by selecting the appropriate checkbox.

### Discovery issues

If any issues are found during the discovery process, a `Discovery issues` section is shown. You can export this list to a CSV file and review the issues before proceeding with the import.

### Discovered rules

The `discovered rules` section shows the proposed rules that Access Manager will create. You can add, edit and delete these rules before finalizing the import. The `effective access` tool can be used to test the proposed rules, and ensure the right users have access to the computers you expect.

### Complete the import

When you have completed your review, and are happy with the proposed rules, click `Import` to merge them into the authorization store.


# Importing BitLocker permissions from Active Directory

If you have delegated permissions to read BitLocker recovery passwords in your environment, you can search your directory for users and groups with existing permissions to read the BitLocker attributes, and convert those permissions to Access Manager authorization rules.

## Open the import wizard

Using the Lithnet Access Manager Configuration Tool, navigate to the `Authorization rules/Computers` page, and click `Import authorization rules...`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-073b475ae291ea67ab5e3a99aeb197be9e958410%2Fui-page-authorization-rules-computers.png?alt=media)

## Select the import type

Select the BitLocker import type, and click `Next`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-4bc0e75f7d4eea398c1b2ac86d497301a2451c24%2Fui-page-import-type-bitlocker.png?alt=media)

## Specify discovery settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-feee7cfeda5fc43bc8806f3a0136ce28f9104d3f%2Fui-page-import-container.png?alt=media)

First, select the container that holds the computers that you want to import the permissions from. Access Manager will evaluate the ACLs on each computer object found in this section of the directory tree, looking for users and groups that have `read` and `control access` permissions on the `msFVE-RecoveryPassword` attribute

When Access Manager finds that a user or group has permission on all computers with an OU, it will create a single access rule at the OU level for that user or group. You can disable this behavior by checking the `Do not consolidate permissions at the OU level` check box. Access Manager will then make an individual authorization rule for every computer that is found.

If there are users and groups that you do not want to import permissions for, add them to the list. The Access Manager service account is automatically pre-added to this list.

You can also choose to ignore certain computers from the import process. For the purposes of permission consolidation, these computers will be treated as if they do not exist at all.

## Specify rule settings

On this page, you can specify the settings for the newly created authorization rules. Choose the permissions you want to assign to the discovered users, and any notifications channels that should apply.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8ac3647c9a3d6eac0b44ec1a68d6ac578240d630%2Fui-page-import-rulesettings.png?alt=media)

## Review discovery results

Once the discovery process has completed, you can review the proposed rules before committing them to the authorization store.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-67767d2aa980e0ff2034299ef328340030e1aa81%2Fui-page-import-results.png?alt=media)

### Merge settings

When a new rule is discovered for a target (computer, group or container) that matches the target of an existing rule, Access Manager will just add the new permissions to the existing rule, rather than create a new rule. You can control this behavior with by unselecting the corresponding checkbox.

When merging rules, settings from the *existing rule* are retained when a conflict is found. For example, if an existing rule is configured to expire LAPS passwords after one hour, and the new rule is configured to expire them after two hours, then the settings from the existing rule are retained. You can alter this behavior by selecting the appropriate checkbox.

### Discovery issues

If any issues are found during the discovery process, a `Discovery issues` section is shown. You can export this list to a CSV file and review the issues before proceeding with the import.

### Discovered rules

The `discovered rules` section shows the proposed rules that Access Manager will create. You can add, edit and delete these rules before finalizing the import. The `effective access` tool can be used to test the proposed rules, and ensure the right users have access to the computers you expect.

### Complete the import

When you have completed your review, and are happy with the proposed rules, click `Import` to merge them into the authorization store.


# Importing local administrator group membership from domain-joined Windows devices

Access Manager can remotely connect to computers and obtain the list of members of the local administrators group of each computer, and consolidate that into a set of authorization rules.

You may wish to consider [performing an offline discovery of local admins](/ams/configuration/importing/performing-an-offline-discovery-of-local-admins), and importing that data into Access Manager using the CSV import function. Check the prerequisite section below to determine if an online or offline import is suitable for your environment.

## Prerequisites

In order to discover members of the local administrators group on remote computers, the following conditions must be met.

1. The user performing the import process must be a local administrator on the remote computers
2. The computer must be reachable via SMB (TCP port 445) from the Access Manager server.

If these conditions cannot be met, it is recommended that you perform an [offline discovery of local admins](/ams/configuration/importing/performing-an-offline-discovery-of-local-admins), and use the CSV import function instead.

## Open the import wizard

Using the Lithnet Access Manager Configuration Tool, navigate to the `Authorization rules/computers` page, and click `Import authorization rules...`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-073b475ae291ea67ab5e3a99aeb197be9e958410%2Fui-page-authorization-rules-computers.png?alt=media)

## Select the import type

Select the local administrators import type, and click `Next` ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-56638d9d6210660e8a5ff4fb45a79ffc3f8ab314%2Fui-page-import-type-localadminrpc.png?alt=media)

## Specify discovery settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-bb50a9ff76cfc6b669ee899147a8d683176ce09e%2Fui-page-import-container-localadminrpc.png?alt=media)

First, select the container that holds the computers that you want to import the permissions from. Access Manager will attempt to connect to each computer object found in this section of the directory tree, and obtain the membership of its local admin group.

When Access Manager finds that a user or group has permission on all computers with an OU, it will create a single access rule at the OU level for that user or group. You can disable this behavior by checking the `Do not consolidate permissions at the OU level` check box. Access Manager will then make an individual authorization rule for every computer that is found.

If any of the computers are uncontactable, Access Manager, by default, will ignore the missing computer for the purposes of consolidating access permissions. This assumes that the missing computers have the same administrators as the other computers in the OU. If this is not the case, select the option to disable consolidate when computers are uncontactable. This approach favors caution, but results in an individual access rule being created for every other computer in that OU.

If there are users and groups that you do want to import permissions for, add them to the list. The Access Manager service account is automatically pre-added to this list. Machine-local accounts are automatically ignored.

You can also choose to ignore certain computers from the import process. For the purposes of permission consolidation, these computers will be treated as if they do not exist at all.

## Specify rule settings

On this page, you can specify the settings for the newly created authorization rules. Choose the permissions you want to assign to the discovered users, and any notifications channels that should apply.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8ac3647c9a3d6eac0b44ec1a68d6ac578240d630%2Fui-page-import-rulesettings.png?alt=media)

## Review discovery results

Once the discovery process has completed, you can review the proposed rules before committing them to the authorization store.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-67767d2aa980e0ff2034299ef328340030e1aa81%2Fui-page-import-results.png?alt=media)

### Merge settings

When a new rule is discovered for a target (computer, group or container) that matches the target of an existing rule, Access Manager will just add the new permissions to the existing rule, rather than create a new rule. You can control this behavior with by unselecting the corresponding checkbox.

When merging rules, settings from the *existing rule* are retained when a conflict is found. For example, if an existing rule is configured to expire LAPS passwords after one hour, and the new rule is configured to expire them after two hours, then the settings from the existing rule are retained. You can alter this behavior by selecting the appropriate checkbox.

### Discovery issues

If any issues are found during the discovery process, a `Discovery issues` section is shown. You can export this list to a CSV file and review the issues before proceeding with the import.

### Discovered rules

The `discovered rules` section shows the proposed rules that Access Manager will create. You can add, edit and delete these rules before finalizing the import. The `effective access` tool can be used to test the proposed rules, and ensure the right users have access to the computers you expect.

### Complete the import

When you have completed your review, and are happy with the proposed rules, click `Import` to merge them into the authorization store.


# Import mappings from a CSV file

You can prepare a CSV file of mappings between users and computer and Access Manager can consolidate that list into a set of authorization rules.

The CSV file import is a simple, but flexible method of creating rules in Access Manager

## CSV file format

The CSV file format is very simple. There are two columns. The first contains the name of the computer, the second is the name of the principal, either a user or a group, to import. Additional columns can be included, but are ignored by the import process.

Computer names may be in any of the following formats

```
ComputerName
DOMAIN\ComputerName
```

Users and group may be in any of the following formats

```
Username
GroupName
DOMAIN\Username
Domain\GroupName
SID
```

Example CSV file

```
Computer,Principal
PC1$,LITHNET\Domain Admins
PC1$,LITHNET\ServerAdmins
PC1$,LITHNET\user1
LITHNET\PC2$,S-1-5-21-633294971-2666783174-3584595190-1122
```

There should be one computer and one principal per line. For each principal that has access to a computer, add a new row. Multiple entries for a single computer will be consolidated during the import process.

## Open the import wizard

Using the Lithnet Access Manager Configuration Tool, navigate to the `Authorization rules/Computers` page, and click `Import authorization rules...`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-073b475ae291ea67ab5e3a99aeb197be9e958410%2Fui-page-authorization-rules-computers.png?alt=media)

## Select the import type

Select the CSV import type, and click `Next`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-39176234ed5328cffb95c0b564bd338062a652cd%2Fui-page-import-type-csv.png?alt=media)

## Select the CSV file

Specify the path to the CSV file, and check the box if your CSV file has a header row. ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-bf1604c58e5fac9662d7693f427ae36b77870f0a%2Fui-page-import-csvsettings.png?alt=media)

## Specify discovery settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-fbcd9e14860f98b22c78c9aba5d884890687503c%2Fui-page-import-container-csv.png?alt=media)

Select the container where Access Manager will find the computers specified in the CSV file.

When Access Manager finds that a user or group has permission on all computers with an OU, it will create a single access rule at the OU level for that user or group. You can disable this behavior by checking the `Do not consolidate permissions at the OU level` check box. Access Manager will then make an individual authorization rule for every computer that is found.

If any of the computers from the container are missing from the CSV file, Access Manager, by default, will ignore the missing computer for the purposes of consolidating access permissions. This assumes that the missing computers have the same authorized principals as the other computers in the OU. If this is not the case, select the option to disable consolidate when computers are missing from the CSV file. This approach favors caution, but results in an individual access rule being created for every other computer in that OU.

If there are users and groups that you do want to import permissions for, add them to the list. The Access Manager service account is automatically pre-added to this list. Machine-local accounts are automatically ignored.

You can also choose to ignore certain computers from the import process. For the purposes of permission consolidation, these computers will be treated as if they do not exist at all.

## Specify rule settings

On this page, you can specify the settings for the newly created authorization rules. Choose the permissions you want to assign to the discovered users, and any notifications channels that should apply.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8ac3647c9a3d6eac0b44ec1a68d6ac578240d630%2Fui-page-import-rulesettings.png?alt=media)

## Review discovery results

Once the discovery process has completed, you can review the proposed rules before committing them to the authorization store.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-67767d2aa980e0ff2034299ef328340030e1aa81%2Fui-page-import-results.png?alt=media)

### Merge settings

When a new rule is discovered for a target (computer, group or container) that matches the target of an existing rule, Access Manager will just add the new permissions to the existing rule, rather than create a new rule. You can control this behavior with by unselecting the corresponding checkbox.

When merging rules, settings from the *existing rule* are retained when a conflict is found. For example, if an existing rule is configured to expire LAPS passwords after one hour, and the new rule is configured to expire them after two hours, then the settings from the existing rule are retained. You can alter this behavior by selecting the appropriate checkbox.

### Discovery issues

If any issues are found during the discovery process, a `Discovery issues` section is shown. You can export this list to a CSV file and review the issues before proceeding with the import.

### Discovered rules

The `discovered rules` section shows the proposed rules that Access Manager will create. You can add, edit and delete these rules before finalizing the import. The `effective access` tool can be used to test the proposed rules, and ensure the right users have access to the computers you expect.

### Complete the import

When you have completed your review, and are happy with the proposed rules, click `Import` to merge them into the authorization store.


# Performing an offline discovery of local admins

While Access Manager provides the ability to import local administrators from computers by querying them remotely, network accessibility and permissions issues may prevent this method from working across an entire domain.

In this scenario, we can use a script, combined with group policy or another deployment tool to query the administrators group locally on each computer, and save the results to a file share. Once all the computers have uploaded their files, they can then be merged into a single CSV file that can be imported into Access Manager using the CSV import function.

This guide will focus on using the group policy method for deploying this script. If you have another deployment tool such as SCCM, then feel free to use that instead.

## Create a report collection share

You'll need a central location for the servers to save their CSV files to. This share needs to be accessible by all servers that you are auditing.

The [New-LocalAdminReportShare](https://github.com/lithnet/access-manager/blob/master/src/Lithnet.AccessManager/Lithnet.AccessManager.Server.UI/ScriptTemplates/OfflineLocalAdminReport/New-LocalAdminReportShare.ps1) script automatically creates a share, with the correct permissions to allow domain computers to create and update their CSV file.

Download the [New-LocalAdminReportShare.ps1](https://github.com/lithnet/access-manager/blob/master/src/Lithnet.AccessManager/Lithnet.AccessManager.Server.UI/ScriptTemplates/OfflineLocalAdminReport/New-LocalAdminReportShare.ps1) script, open a PowerShell command window, and run the following command

```
.\New-LocalAdminReportShare.ps1 -Path "C:\local-admin-reports" -ShareName "local-admin-reports"
```

We'll use the folder and share name `local-admin-reports` throughout this guide. If you change the name of the share, take note to replace it where it is mentioned throughout this guide.

{% hint style="warning" %}
As the data contained from these reports will eventually be uploaded into Access Manager, you need to minimize access to the share, to limit the ability for a malicious actor to add unexpected authorization entries. The provided scripts minimize the risks by implementing tight security controls around the data that is gathered, but you should still check and validate that the rules created match the permissions you expect to see.
{% endhint %}

## Download the data collection scripts

Download the `Get-LocalAdmins.ps1` and `run.bat` files from the [script library](https://github.com/lithnet/access-manager/tree/master/src/Lithnet.AccessManager/Lithnet.AccessManager.Server.UI/ScriptTemplates/OfflineLocalAdminReport) and save them to `C:\local-admin-reports\scripts`. This script folder was created by the `New-LocalAdminReportShare.ps1` script and has been configured with the permissions required to allow computers to read the scripts from this specific location.

## Create a group policy

1. Create a new group policy, and link it to the OU containing the computers you want to audit
2. Navigate to `Computer Configuration` ⇾ `Preferences` ⇾ `Control Panel Settings` ⇾ `Scheduled Tasks`
3. Right click and select `New` ⇾ `Scheduled Task (At least Windows 7)`
4. Configure the following settings on the `General` tab:

| Setting                         | Value                                |
| ------------------------------- | ------------------------------------ |
| Action                          | Update                               |
| Name                            | Get-LocalAdmins                      |
| Account                         | SYSTEM                               |
| Run mode                        | Run whether user is logged on or not |
| Run with the highest privileges | Checked                              |

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-07d5c72abd8146a5d7c24e216faa0c5d41c5d10e%2Fgroup-policy-local-admins-script-scheduledtask-general.png?alt=media)

1. On the `Trigger` tab:
   * Click new, and set the `Being the task` drop down to `At task creation/modification`

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-e8a276ed594ea54cf2bbd3a40859ff1416b0e4ca%2Fgroup-policy-local-admins-script-scheduledtask-trigger-new.png?alt=media)

1. On the `Actions` tab:
   * Click new
   * Set the `action` type to `Start a program`
   * In the `Program/Script` field, enter the path to the run.bat file (e.g. `\\your-server\local-admin-reports\scripts\run.bat`)

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5a4f55653c3781112ac7e90ba34214674bf665d9%2Fgroup-policy-local-admins-script-scheduledtask-action-new.png?alt=media)

1. Save the scheduled task

When the machines check in for their group policy update, the task will be created and will run, and you will see your report share start filling up with CSV files.

If any `.error` files appear, investigate the details of the error and remediate appropriately.

## Merging the files

Once all of your computers have reported their local admin membership, you must validate and merge the data before you can import it into Access Manager.

Download the [Get-ValidatedAndMergedLocalAdminFile.ps1](https://github.com/lithnet/access-manager/blob/master/src/Lithnet.AccessManager/Lithnet.AccessManager.Server.UI/ScriptTemplates/OfflineLocalAdminReport/Get-ValidatedAndMergedLocalAdminFile.ps1) script, and run it from a PowerShell command prompt with the following command line.

```powershell
.\Get-ValidatedAndMergedLocalAdminFile.ps1 -CSVPath 'c:\local-admin-reports' -OutFile 'c:\merged-results.csv'
```

This process will merge the individual CSV files into one master CSV file, after checking for invalid entries.

The following checks are performed on each file

1. The `file owner` should be the machine that created the file. If the file owner does not match the name of the file, a warning is logged, and the file is skipped.
2. If any computer entries inside the file do not match the owner of the file, then those entries are skipped.

This is designed to protect against two specific scenarios, where a malicious user is in control of one of your machines

1. The user tries to create an authorization file for another machine
2. The user tries to add authorization entries to their machines file, for other machines

However, we can't protect against a malicious user who is in control of a machine adding entries to its own file, for the machine they are already in control of. This isn't considered a security risk for this discovery process, because that user is in control of the machine anyway.

If you have not used the provided script to create the file share, then these checks will likely fail. If you want to override them, then you can use the `-IgnoreOwnerErrors` switch to force all the entries to be imported. Ensure you carefully examine the contents of each file.

## Import into Access Manager

Once you've validated and merged your data, you can now import the merged CSV file into Access Manager.

Follow the steps in the [importing mappings from a CSV file](/ams/configuration/importing/importing-mappings-from-a-csv-file) guide.


# Frequently asked Questions

## Do I need to deploy the Lithnet Access Manager Agent?

The Lithnet Access Manager agent is an optional component you can deploy in your environment that provides a host of additional features that compliments the Access Manager server.

You should deploy the agent when you want to take advantage of the following capabilities

* Using the RapidLAPS passwordless LAPS login feature
* Using passphrases for LAPS passwords, instead of random characters
* Backing up BitLocker recovery keys from AD-joined, Entra-joined, and standalone Windows devices
* Managing the root password on macOS and linux devices

If you want to use our RapidLAPS feature for passwordless LAPS login and elevation, then the Access Manager Agent is required, however it does not need to be configured to manage the LAPS password itself. The agent can be deployed, and RapidLAPS enabled, while the Microsoft agent manages the LAPS password itself.

Read our guide on [Choosing a local admin password strategy](/ams/help-and-support/choosing-between-the-microsoft-and-lithnet-laps-agents) to learn more about the differences between using the Microsoft LAPS agent and the Lithnet Access Manager Agent.

## How are directory passwords encrypted?

Lithnet Access Manager uses public-key cryptography to protect directory passwords. The Access Manager Service (AMS) creates a public and private key pair (RSA-PSS 4096-bit), and stores the private key in the service certificate store.

The Access Manager agent obtains the public key from the AMS server as part of its policy. It then generates a unique encryption key and salt and uses AES-CBC-256 to encrypt the password with this key. The AES key is encrypted with the public key of the encryption certificate and the resulting blob converted to base-64 text and stored along with the thumbprint of the certificate used to encrypt the key material.

## Can I rotate the encryption certificate?

Yes, you can create and publish a new encryption certificate at any time. Agents will encrypt their passwords using this new certificate at the next scheduled password rotation. Do note that the agents will not re-encrypt their previous passwords using the new certificates. Agents do not have access to the private key needed to decrypt the passwords.

As such, you need to ensure that the old certificate remains on the server, for as long as there are passwords in the directory that were encrypted with the old certificate.

## Can computers decrypt their own admin passwords?

No. Passwords are encrypted using asymmetrical encryption. They encrypt the passwords using the public key of the encryption certificate and only the private key can decrypt this data. The private key remains only on the AMS server at all times.


# Troubleshooting

## Logs

The first step of any troubleshooting endeavor is check in the Access Manager log files. These contain information about errors and other important events.

### Access Manager Service

The Access Manager Service has several log files.

`access-manager-webapp.log` Contains events from the Access Manager web app, including information on access requests and authorization results.

`access-manager-api.log` Contains events from the Access Manager API, including things like device authentication, registration and password updates.

`access-manager-service.log` Contains events from the core access manager service, the scheduler, RPC interface, and worker services.

`access-manager-jitworker.log` Contains events from the JIT worker service, which is responsible for creating and deleting JIT groups for computer objects when this feature is enabled.

These logs are located in `%ProgramFiles%\Lithnet\Access Manager Service\Logs`

### Access Manager Agent

The Access Manager Agent log files are located in `%ProgramFiles%\Lithnet\Access Manager Agent\Logs`

### Configuration Tool

The configuration UI also has a log file to keep track of any issues encountered in the tool itself. The log file is called `access-manager-ui.log` and is located in `%ProgramFiles%\Lithnet\Access Manager Service\Logs`


# Quick start guides

* [Getting started with RapidLAPS](/ams/help-and-support/quick-start/getting-started-with-rapidlaps)
* [Getting started with Windows LAPS](/ams/help-and-support/quick-start/getting-started-with-windows-laps)


# Getting started with Windows LAPS and Lithnet Access Manager

Microsoft [recently released](https://techcommunity.microsoft.com/t5/windows-it-pro-blog/by-popular-demand-windows-laps-available-now/ba-p/3788747) a new version of Windows LAPS via Windows Update to Windows 10, 11, Windows Server 2019 and above. This new version brings native LAPS capability to all supported operating systems without needing any additional software installation.

Windows LAPS replaces the 'legacy' LAPS that required a separate installation, and is now built into the operating system itself. It has received major new features including support for Microsoft Entra-joined devices, encrypting LAPS passwords, and storing a history of LAPS passwords.

The great news is that Lithnet Access Manager works with Windows LAPS for Active Directory and Microsoft Entra ID out of the box! Lithnet Access Manager provides a simple web-based and mobile-friendly interface for accessing local admin passwords. There’s no need to install custom software, or have access to AD administrative tools or PowerShell to access LAPS passwords.

It's MFA-ready with native support for Entra ID, Okta, ADFS, and even smart cards via OpenID Connect. It has easy to use, yet highly customizable auditing capability coupled with a granular and extensible permission model.

When combined, Windows LAPS and Lithnet Access Manager make the perfect pair ❤

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-515ca2a161eae231658160372972d0e626757bbc%2Fweb-request-laps.gif?alt=media)

We've prepared some quick-start guides for getting started with the new Windows LAPS, and accessing those passwords with Lithnet Access Manager:

* [Getting started with Windows LAPS for Microsoft Entra](/ams/help-and-support/quick-start/getting-started-with-windows-laps-for-azuread)
* [Getting started with Windows LAPS for Active Directory](/ams/help-and-support/quick-start/getting-started-with-windows-laps-for-ad)


# Getting started with Windows LAPS for Active Directory

This quick-start guide will provide you with all the information you need to get up-and-running with using Lithnet Access Manager to access LAPS passwords created by the new Windows LAPS agent.

### Step 1: Prepare the Active Directory for Windows LAPS

Windows LAPS requires some new schema attributes and permissions to be delegated. Follow Microsoft's [setup guide](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-scenarios-windows-server-active-directory) for preparing your Active Directory to work with Microsoft LAPS.

### Step 2: Enable and configure Windows LAPS

Make sure your test machines have installed the April 2023 Windows updates, which include the new LAPS capability.

Configure your LAPS clients via [group policy](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-management-policy-settings)

### Step 3: Test LAPS Access

Before configuring Access Manager, it's a good idea to make sure that LAPS is working natively first. You can use the built-in [PowerShell](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-scenarios-windows-server-active-directory#retrieve-a-password-from-windows-server-active-directory) modules to make sure you can access the LAPS passwords. Once you are confident that it is all working, you can move onto the next step of installing Access Manager.

### Step 4: Install Lithnet Access Manager Server

Now you can proceed with installing Access Manager itself. Our [detailed setup guide](/ams/installation/installing-the-access-manager-server/installing-the-access-manager-service) will walk you through the process.

If you just want to set up a quick test environment, you can use a single server deployment, with the built-in SQL Express engine, to simplify the deployment.

### Step 5: Configure Access Manager to read LAPS passwords

Once Access Manager is installed, you need to grant it the permissions it needs to read passwords from the directory, and assign access to your users.

Follow the steps in the [configuration guide for Microsoft LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps) to correctly delegate and assign user permissions.

### Step 6: Test user access

Visit the Access Manager web app in the browser and request the LAPS password for your test computer. If you have configured the app correctly, you should be presented with the LAPS password for the machine.

Check out our [troubleshooting guide](/ams/help-and-support/troubleshooting) for more help.


# Getting started with Windows LAPS for Microsoft Entra

This quick-start guide will provide you with all the information you need to get up-and-running with using Lithnet Access Manager to access LAPS passwords created by the new Windows LAPS agent.

### Step 1: Enable and configure Windows LAPS

Make sure your test machines have installed the April 2023 Windows updates, which include the new LAPS capability.

Follow the first steps in Microsoft's [getting started guide](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-scenarios-azure-active-directory) to enable LAPS via Intune CSP.

You don't need to complete the steps after configuring the policy and testing the LAPS client locally.

### Step 2: Test LAPS Access

Before configuring Access Manager, it's a good idea to make sure that LAPS is working natively first. Using the Microsoft Entra or Intune management portal, make sure you can see and retrieve the LAPS passwords for your test devices.

Once you are confident that it is all working, you can move onto the next step of installing Access Manager.

### Step 3: Install Lithnet Access Manager Server

Now you can proceed with installing Access Manager itself. Our [detailed setup guide](/ams/installation/installing-the-access-manager-server/installing-the-access-manager-service) will walk you through the process.

If you just want to set up a quick test environment, you can use a single server deployment, with the built-in SQL Express engine, to simplify the deployment.

### Step 4: Configure Access Manager to read LAPS passwords from Microsoft Entra

Once Access Manager is installed, you need to grant it the permissions it needs to read passwords from Microsoft Entra and assign access to your users.

Follow the steps in the [configuration guide for Microsoft LAPS for Entra](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad) to correctly delegate and assign user permissions.

### Step 6: Test user access

Visit the Access Manager web app in the browser and request the LAPS password for your test computer. If you have configured the app correctly, you should be presented with the LAPS password for the machine.

Check out our [troubleshooting guide](/ams/help-and-support/troubleshooting) for more help.


# Getting started with RapidLAPS

RapidLAPS is Lithnet Access Manager's passwordless login system for LAPS accounts.

This quick-start guide will provide you with all the information you need to get up-and-running with using Lithnet Access Manager to enable RapidLAPS login to your windows devices.

### Step 1: Install Lithnet Access Manager Server

Now you can proceed with installing Access Manager itself. Our [detailed setup guide](/ams/installation/installing-the-access-manager-server/installing-the-access-manager-service) will walk you through the process.

If you just want to set up a quick test environment, you can use a single server deployment, with the built-in SQL Express engine, to simplify the deployment.

### Step 2: Select and configure a LAPS agent

Using RapidLAPS first requires that the computers you are deploying to have a LAPS agent installed and running.

This can be the legacy Microsoft LAPS agent, the new built-in Windows LAPS agent, or you can use the Access Manager agent to manage your LAPS passwords.

While RapidLAPS requires that you deploy the Access Manager agent to your devices, you don't need to use it to manage the LAPS password itself.

If you have Microsoft LAPS up and running already, then skip over to the next step. Otherwise, following one of these guides to configure the LAPS agent of your choosing

* [Getting started with Windows LAPS](/ams/help-and-support/quick-start/getting-started-with-windows-laps)
* [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)

### Step 3: Configure Access Manager to read LAPS passwords

Once you've deployed LAPS, you'll need to configure the Access Manager service to be able to read those LAPS passwords using one of the following guides.

* [Setting up Microsoft LAPS for Active Directory](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps)
* [Setting up Microsoft LAPS for Microsoft Entra](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad)
* [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)

### Step 4: Test LAPS Access

Before configuring RapidLAPS, make sure you can access the LAPS password from the Access Manager web app first. If you're unable to retrieve the LAPS password, RapidLAPS wont be able to either, so it's imperative to ensure that you test with web-based access to LAPS passwords first.

### Step 5: Configure RapidLAPS

Once you've validated that Access Manager can read your LAPS passwords, you can proceed with the final stage of configuring RapidLAPS

* [Setting up RapidLAPS](/ams/configuration/deploying-features/setting-up-rapid-laps)

### Step 6: Test RapidLAPS access

On a machine where RapidLAPS is configured, logout, and you should be presented with a new tile on the login screen for "Login with RapidLAPS".

Check out our [troubleshooting guide](/ams/help-and-support/troubleshooting) for more help.


# Product lifecycle

Access Manager support dates are driven in part by the end of support dates for Microsoft .NET.

| Access Manager Version | Status                  | .NET version | End of support date |
| ---------------------- | ----------------------- | ------------ | ------------------- |
| 1.0                    | Not supported           | 3.1          | Dec 13, 2022        |
| 1.1                    | Not supported           | 6.0          | Nov 12, 2024        |
| 2.0                    | Not supported           | 6.0          | Nov 12, 2024        |
| 2.1                    | Supported (maintenance) | 8.0          | Nov 10, 2026        |
| 3.0                    | Supported (maintenance) | 8.0          | Nov 10, 2026        |
| 3.1                    | Supported               | 10.0         | Nov 14, 2028        |

## Support statuses

* **Supported** — the current release. Receives new features, enhancements, and security fixes.
* **Supported (maintenance)** — receives security and critical stability fixes only, until its end of support date. Upgrade to the current release to receive new features and enhancements.
* **Not supported** — no longer receives updates or fixes of any kind.

## End of support

When a version reaches its end of support date, it no longer receives updates or security fixes. The software continues to run after this date, but issues found after that date will not be fixed. Upgrade to a supported version before the end of support date. See [Upgrading to Access Manager v3.1](/ams/installation/upgrading-from-v3.0) for upgrade guidance.


# Choosing between the Lithnet and Microsoft agent for LAPS

Managing local admin passwords safely and securely relies on having a mechanism to generate and store the local admin passwords. There are three supported agents you can use with Access Manager to manage your device local admin passwords. This guide will help you choose the right option for your environment.

## Option 1: Lithnet Access Manager agent

Lithnet Access Manager has its own agent that can be used to manage the local admin passwords of your devices. It has full support for encrypted passwords, password history, and is not just supported on Windows, but macOS and Linux as well.

As well as managing LAPS passwords in much the same way as the Microsoft agent, it adds support for backing up BitLocker recovery codes from any Windows device, and enables our new RapidLAPS passwordless LAPS login capability.

Pros

* Supports Windows, macOS, and Linux
* Encrypts all passwords, along with password history support
* Support for "passwordless" elevation and LAPS login with *RapidLAPS* (Windows only)
* Backs up BitLocker recovery keys (Windows only)
* Supports Windows Server 2016 and higher, as well as Windows 10 and higher
* Supports Active Directory joined, Entra ID joined, as well as standalone Windows devices

Cons

* No support for out-of-date operating systems. Only supported on Windows 10 and above and Windows Server 2016 and above

### When should I use the Lithnet Access Manager agent?

* You wish to use the *RapidLAPS* feature on Windows devices.
* You have macOS and Linux devices you want to support
* You have Windows devices not joined to a domain
* You want one LAPS client solution for your entire Windows and non-Windows fleet

{% hint style="info" %}
**Use the&#x20;*****password management*****&#x20;features of the Lithnet Access Manager agent is optional**

For example, if you wish to keep using native Windows LAPS to manage passwords, but want to make use of features such as *RapidLAPS*, the AMS Agent can be configured to not manage passwords.

If the AMS Agent detects that either the *Windows LAPS client* or the *legacy LAPS client* is managing passwords on a device, it will *not* attempt to manage local account passwords (to avoid conflicts).
{% endhint %}

{% hint style="info" %}
**Mix and match!**

It's important to note that you are not restricted to the use of a single LAPS client type in your environment.

For example, you can use the legacy LAPS client on legacy operating systems, Windows LAPS on modern operating systems, and Access Manager Agent on macOS and Linux devices.

Access Manager Server can read LAPS passwords from any client listed on this page.
{% endhint %}

## Option 2: Legacy LAPS client

Microsoft's tried and true legacy LAPS client provides support for managing LAPS passwords for Active Directory joined devices. It supports a wide range of legacy and modern Windows operating systems.

Pros

* Has the broadest support for OS coverage
* Easy to deploy and configure via group policy

Cons

* Windows only
* Supports Active Directory domain-joined machines only
* Passwords are stored in the directory in plain-text
* Does not store a history of previously used local admin passwords
* Deprecated and no longer being updated by Microsoft

### When should I use legacy LAPS?

* You have an existing deployment of legacy LAPS
* You need to support legacy Windows operating system versions

## Option 3: Windows LAPS client

In April 2023, Microsoft released LAPS as a built-in Windows feature. This also brought a range of new support for things like password history, encryption, and support for Microsoft Entra joined devices.

Pros

* Support for both AD and Microsoft Entra joined devices
* Has password history support
* Optionally encrypts passwords stored in Active Directory
* Built into Windows
* Actively supported and developed by Microsoft

Cons

* Windows only
* No support for older operating systems that are still in support. Only supported on Windows 11, Windows Server 2019 and higher, and Windows 10 versions supported as of April 2023.

### When should I use Windows LAPS?

* Your organization has modern Windows operating systems either joined to Microsoft Entra or Active Directory

## Operating system support

The Microsoft agents works only on Windows AD or Microsoft Entra-joined devices. Lithnet Access Manager agent supports a much wider range of operating systems.

| Operating system                       | Microsoft Legacy LAPS Agent                                                                                                                                                                           | Microsoft Windows LAPS Agent                                                                                                                                                                          | Lithnet Access Manager Agent                                                                                                                                                                          |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Windows Vista, Windows 7 and Windows 8 | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Windows 8.1                            | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Windows 10                             | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Windows 11 and higher                  | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Windows Server 2012 R2                 | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Windows Server 2016                    | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Windows Server 2019 and higher         | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| macOS\[1]                              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Linux\[1]                              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

*1. See the* [*downloads page*](https://lithnet.io/products/access-manager/downloads/?version=3.1) *for detailed operating system support for macOS and Linux agents.*

## Supported join types

| Join type                             | Microsoft Legacy LAPS Agent                                                                                                                                                                           | Microsoft Windows LAPS Agent                                                                                                                                                                          | Lithnet Access Manager Agent                                                                                                                                                                          |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Active Directory joined devices       | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Entra ID joined devices               | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Non-domain joined devices (workgroup) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

## Feature comparison

| Feature                                                | Microsoft Legacy LAPS Agent                                                                                                                                                                           | Microsoft Windows LAPS Agent                                                                                                                                                                          | Lithnet Access Manager Agent                                                                                                                                                                          |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Regularly rotates the local admin password             | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Stores a history of previous local admin passwords     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Stores passwords in plain-text                         | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media) 1 | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Encrypts passwords                                     | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Writes passwords to Active Directory                   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Write passwords to Entra ID                            | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   |
| Write passwords to the AMS server                      | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Backups up BitLocker recovery keys to AMS              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Enables passwordless login and elevation via RapidLAPS | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |

*1. Windows LAPS can store passwords in plain text if configured*

## Compatibility with password retrieval solutions

|                                                            | Legacy LAPS thick client                                                                                                                                                                              | Windows LAPS AD property pages                                                                                                                                                                        | Windows LAPS PowerShell                                                                                                                                                                               | Entra Admin Portal                                                                                                                                                                                    | Access Manager Service                                                                                                                                                                                |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Microsoft Legacy LAPS passwords stored in AD               | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Microsoft Windows LAPS passwords stored in AD              | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Microsoft Windows LAPS passwords stored in Microsoft Entra | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |
| Access Manager Agent passwords                             | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5ba3c2da449cef9bfbf2b46c4d98bb52d1f979b7%2Fdash.png?alt=media)   | ![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9b15e7da1ccb109287a26f8075e75c14ad110e1e%2Fcheck3.png?alt=media) |


# Support Articles


# KB000001: The Access Manager Agent cannot connect and logs a token-validation-failed error

## Summary

The Lithnet Access Manager agent may show the following error message in the agent log file

```
LithnetAccessManagerAgent[909131]: Lithnet.AccessManager.Agent.LinuxLapsAgent[1006] The LAPS agent process encountered an error
Lithnet.AccessManager.Agent.ApiException: The API call failed with HTTP status Unauthorized:Unauthorized. The API returned error code 'token-validation-failed'
```

The server will show a corresponding error message in the `access-manager-api.log` file

```
|ERROR|Lithnet.AccessManager.Api.ApiErrorResponseProvider|The security token failed the validation process

Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'System.String'. Did not match: validationParameters.ValidAudience: 'System.String' or validationParameters.ValidAudiences: 'System.String'.
```

## Cause

This issue occurs because the hostname configured as the `External host name` on the server, differs from the host name provider at agent registration time

## Resolution

### Step 1: Validate server-side external host name

To resolve this issue, first check that the `External host name` field is correct on the server side.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-3219305a5244ced089f5b7424b3f96eb370907f0%2Fui-page-host-configuration.png?alt=media)

### Step 2: Validate client-side configuration

On the client side, ensure the matching name has been specified during the setup process.

#### Linux

Run the following command to repeat the setup process, and provide the correct hostname

```shell
/opt/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --setup
```

#### macOS

Run the following command to repeat the setup process, and provide the correct hostname

```shell
/Applications/LithnetAccessManagerAgent/Lithnet.AccessManager.Agent --setup
```

#### Windows

Run the following command to repeat the setup process, and provide the correct hostname

```batch
"C:\Program Files\Lithnet\Access Manager Agent\Lithnet.AccessManager.Agent.exe" --setup
```


# KB000002: Users retain their admin rights after their JIT period expires

## Summary

When a user is granted just-in-time administrative access to a computer, if they remain logged into their session, they will retain administrative rights even after the JIT access period expires.

## Cause

This is expected behavior due to the way Windows creates access tokens.

Let's consider an example where `user1` requests just-in-time access to `pc1`, granted via the Active Directory unique JIT group for that PC, called `jit-pc1`. This group is added to the local administrators group of `pc1` via group policy.

When Access Manager grants JIT access to a user, they are added to `jit-pc1`. Through `jit-pc1`'s nested membership in the local administrators group, they have local admin permissions.

When the user logs onto the computer, Windows evaluates the domain-based group membership, finds the AD group membership in `jit-pc1`, and maps that membership to the local `administrators` group. The users access token will be constructed containing this group membership set.

However, once the access token is built at logon, Windows does not ever reconstruct the token. There are ways to force Windows to re-evaluate group membership, but this only impacts access to network resources, the access token providing access to local resources on the computer is never updated. Therefore, the user has administrative rights for the duration of their logon session.

## Resolution

Access Manger's design goal, is to reduce standing admin rights across your Windows environments, with the intent of collapsing the lateral movement graph that an attacker could exploit.

It was not designed to specifically restrict user access to systems in a precise time-bound banner.

Our product operates under the assumption that authorized users are entitled to their access all the time, (e.g they are never *not* entitled to be an administrator), however we just don't want that access to be applied when it is not needed.

We do recommend combining the use of JIT with a tool like [Lithnet Idle Logoff](https://github.com/lithnet/idle-logoff) to ensure that users are logged off once they become idle, which ensures unnecessary administrative rights are cleared when no longer in use.


# KB000003: Configuring the Access Manager Agent to manage an account other than 'root' on Linux

## Summary

{% hint style="info" %}
Content on this pages applies only to agents running v2. Agents running v3 have native support for changing the account name in the policy configured on the AMS server
{% endhint %}

The Access Manager Agent for Linux is configured by default to manage the password of an account named `root`. You can configure the agent to manage an account with a different name.

## Resolution

Modify the `/etc/LithnetAccessManagerAgent.conf` file to include the `Unix` and `Username` fields as shown below, replacing `adminuser` with your desired username. Be sure to match the braces, and provide the comma before the `Unix` element.

```json
{
  "Logging": {
    "LogLevel": {
      "Default": "Trace",
      "Microsoft": "Warning",
      "System.Net": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "Unix": {
    "Username": "adminuser"
  }
}
```

## Notes

The name of the account whose password is being managed is only visible to users in the web app when using Enterprise edition. Community edition users will be able to access the password, but the username will not be shown.


# KB000004: Creating a log file to troubleshoot installation issues with the Access Manager Service

## Summary

If the Access Manager Service installer fails, you can use the in-built advanced logging capability to generate a detailed installation log of what happened, to help troubleshoot the root cause.

## Resolution

From an elevated command prompt, run the installer EXE with the following arguments

```batch
LithnetAccessMangerService-x64.exe /l*v C:\ams-install.log
```

A detailed log file will be created at the path specified, which can be used to help narrow down the root cause.


# KB000005: Access Manager stops working after applying the November 2022 Windows update

## Summary

After installing the November 2022 Windows updates on your domain controllers, you may find that the Access Manager service does not start, or user authentication fails when trying to access the web service.

## Cause

There are [known issues](https://learn.microsoft.com/en-us/windows/release-health/status-windows-11-22H2#2953msgdesc) with the [November 2022 Windows update](https://support.microsoft.com/en-us/topic/november-8-2022-kb5019980-os-build-22621-819-b503e08b-b850-469a-8de9-74df8aebd5f4) that can prevent users, service accounts, and computer objects from authenticating in the domain.

This can result in the Access Manager Service failing to start, or if the service does start, the Access Manager service may be unable to access resources within the domain. As a result, users cannot log into the AMS website, or access LAPS password and request JIT access.

In the event log or in the AMS log files (`C:\Program Files\Lithnet\Access Manager Service\logs`), you may find one or more of the following log entries (or similar messages).

```
Lithnet.Security.Authorization.AuthorizationContextException: AuthzInitializeContextFromSid failed
 ---> System.ComponentModel.Win32Exception (0x80090342): The encryption type requested is not supported by the KDC.
```

```
System.Security.Authentication.AuthenticationException: The user name or password is incorrect.
 ---> System.Runtime.InteropServices.COMException (0x8007052E): The user name or password is incorrect.
```

Users may see an error message in the portal saying:

> Your request could not be processed because your SSO identity could not be found in the directory

## Resolution

Microsoft have released an out-of-band update to fix the known issue with the update. Install the update on all domain controllers, and once complete, reboot the AMS server.

* [KB5021656: Windows Server 2022](https://support.microsoft.com/help/5021656)
* [KB5021655: Windows Server 2019](https://support.microsoft.com/help/5021655)
* [KB5021654: Windows Server 2016](https://support.microsoft.com/help/5021654)
* [KB5021653: Windows Server 2012 R2](https://support.microsoft.com/help/5021653)
* [KB5021652: Windows Server 2012](https://support.microsoft.com/help/5021652)
* [KB5021657: Windows Server 2008 SP2](https://support.microsoft.com/help/5021657)

This patch does not need to be installed on the AMS server itself.


# KB000006: Migrating the Access Manager Database

## Summary

This document outlines the steps required to migrate the Access Manager database from the built-in SQL express instance, to a standalone SQL server or cluster.

## Procedure

1. As always, take a full system backup of the AMS server before making any changes
2. Stop the Access Manager service
3. Backup the existing database. You can install SQL Management Studio to do this, but it can be done any way you prefer such as using command line tools.
4. Stop the SQL Express service instance
5. Restore the database onto the new SQL server
6. Once restored, you'll need to grant the AMS service account `db_owner` rights on the database, and set the default database for the user to `AccessManager`. These permissions won't exist, as SQL Express uses a service-based ACL that won't work on a remote server.

You can run the [database creation script](/ams/installation/installing-the-access-manager-server/sql-installation-options#installation-steps) shown in the installation guide to set the appropriate permissions. It won't create the database if it already exists, but it will fix the missing permissions. If you use the script, make sure you replace the value of the `@ServiceAccount` variable to match the AMS service account you use.

7. Using the registry editor on the AMS server replace the `ConnectionString` value inside `HKEY_LOCAL_MACHINE\SOFTWARE\Lithnet\Access Manager Service\Parameters`, with the new server details. For example, for a server called `SQLDBServer.domain.local` the connection string will become `Server=SQLDBSERVER.domain.local;Initial Catalog=AccessManager;`.
8. Start the Access Manager service, and you should be back up and running.
9. Uninstall SQL express and delete any old database files

## Troubleshooting

* If the service fails to start, check the `access-manager-service.log` file in `C:\Program Files\Lithnet\Access Manager Service\logs` for more details on why the service did not start
* Check the `Lithnet Access Manager` application event log for error information
* Check the windows `Application` event log for error information
* Validate that the permissions on the DB were granted correctly. The service accounts needs permission to connect to the database server, and `db_owner` permission on the database itself.


# KB000007: Adding JIT groups via Group Policy doesn't work with NTLM Disabled

## Summary

When NTLM is restricted (specifically, *outgoing* NTLM) on a workstation or server, JIT groups added via Group Policy may not apply correctly.

## Cause

NTLM is often disabled on Windows using the following Group Policy settings found in `Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options`:

* Network security: Restrict NTLM: Incoming NTLM traffic – "Deny All Accounts"
* Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers – "Deny All"

Another Group Policy setting, [commonly appearing in configuration benchmarks](https://www.unifiedcompliance.com/products/search-controls/control/8526/), is known to cause issues when NTLM is restricted: "Enable RPC Endpoint Mapper Client Authentication"

At the time of writing (August 2023), Microsoft documentation [states that](https://learn.microsoft.com/en-us/windows-server/security/rpc-interface-restrict#enableauthepresolution) these two settings are **incompatible**.

## Resolution

To quote Microsoft's [documentation](https://learn.microsoft.com/en-us/windows-server/security/rpc-interface-restrict#enableauthepresolution):

> It's encouraged to move away from NTLM to better secure your environment. If faced with a choice between restricting NTLM and using `EnableAuthEpResolution`, the recommended approach is that you restrict NTLM in your environment.

Once RPC Endpoint Mapper Client Authentication (`EnableAuthEpResolution`) is disabled, groups should sucessfully apply using Group Policy after a reboot.

## Detailed Explanation

When making changes to Local Users and Groups via GPO, Windows needs to be aware of the *security identifier* (SID) of the group.

Typically, when a group is added to a local group on a computer via GPO, the SID is *precomputed*, as the exact group to be added is already known. However, when the name of the group contains a variable - such as `%computername%` - SIDs are not pre-computed in the policy (as the group name will depend on the machine itself).

As a result, Windows uses the [LsaLookupNames2](https://learn.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-lsalookupnames2) function from `ntsecapi.h` to transform security group *names* (e.g. `DOMAIN\Group`) into *security identifiers* (SIDs) on the client.

The first part of this process is for the client to connect to a domain controller and call Endpoint Mapper (TCP 135). This allows the client to identify the port on which to connect to the [MS-LSAT](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-lsat/1ba21e6f-d8a9-462c-9153-4375f2020894) service.

However, when `EnableAuthEpResolution` is enabled, the RPC Endpoint Mapper Client will use NTLMSSP to authenticate to the Endpoint Mapper Service on the domain controller. As NTLM is disabled on the client, this connection fails!

This authentication failure means that the resolution of the group name fails. As a result, the group is never added to the local group on the workstation or server.


# KB000008: AMS is unable to JIT into privileged groups such as Domain Admins

## Summary

When attempting to JIT into a privileged group such as Domain Admins, the request may fail and show the user the following error message.

`An unexpected error occurred while trying to complete your request`

The `access-manager-webapp.log` file will show a message similar to the following

```
System.UnauthorizedAccessException: Access is denied.
at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo()
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at Lithnet.AccessManager.ActiveDirectory.ActiveDirectoryGroup.AddMember(IActiveDirectorySecurityPrincipal principal, TimeSpan ttl)
```

There may be one or more successful attempts before these errors occur.

## Cause

Certain groups in Active Directory are considered ['protected' groups](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory) by Active Directory.

Protected groups have a special permission set on them enforced by AD itself. Every 60 minutes AD will turn off inheritance and reset the ACL of these protected users and groups, if they have been modified.

The process that does this also follows nested membership. So if you add a group to domain admins, that group also becomes protected, and has its ACL overwritten to the AdminSDHolder template.

The ACL template that is applied comes from the AdminSDHolder template in AD.

## Resolution

In order to allow Access Manager to modify the member of protected groups, you must modify the ACL of the AdminSDHolder object, to include the AMS service account. This does have the side effect that the AMS service account will have the access you provided, to *all* protected accounts and groups.

If you grant `write member` permissions to the AMS service account on the AdminSDHolder template, then AMS will have modify member rights on [all groups that are protected](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory#protected-groups).

There is no way to limit the permission to a specific group.

To do this safely, we recommend having a dedicated AMS instance for 'tier zero', where the underlying server, and the AMS instance is only accessible by Domain admins. This instance is then used for JITting into roles like schema admins, enterprise admins, etc.

## Deployment script

The following script can be used to grant 'write member' permissions to all protected groups in a domain, by modifying the AdminSDHolder template permissions in the directory.

```powershell
# Grant-ModifyProtectedGroupMembershipPermissions
# 
# This script grants permissions for the AMS service account to update protected groups
# Running this script requires membership in the Domain Admins group for the target domain
#
# Version 1.0

#-------------------------------------------------------------------------
# Set the following values as appropriate for your environment. If the service account is in another forest and cannot be resolved, provide its SID, by looking it up first in the source domain using Get-ADUser or Get-ADServiceAccount
#-------------------------------------------------------------------------

$amsServiceAccount = "dev\svc-lithnetams$"

#-------------------------------------------------------------------------
# Do not modify below here
#-------------------------------------------------------------------------

if (-not $amsServiceAccount.StartsWith("S-1-5"))
{
    $ntaccount = new-object System.Security.Principal.NTAccount $amsServiceAccount
    $sid = $ntAccount.Translate([System.Security.Principal.SecurityIdentifier]);
}
else
{
    $sid = $amsServiceAccount
}

Import-Module ActiveDirectory

$ErrorActionPreference = "Stop"
$InformationPreference = "Continue"

if ([string]::IsNullOrEmpty($domain))
{
	$server = (Get-ADRootDSE).dnsHostName
}
else
{
	$server = (Get-ADDomainController -DomainName $domain -Discover -ForceDiscover -Writable).HostName[0]
}

$rootDSE = Get-ADRootDSE -Server $server

if ([string]::IsNullOrEmpty($DN))
{
	$DN = $rootDSE.defaultNamingContext
}

$DN = "CN=AdminSDHolder,CN=System," + $DN 

$schemaNC = $rootDSE.schemaNamingContext
$groupObjectGuid = New-Object Guid @(,(Get-ADObject -Server $server -SearchBase $schemaNC -LdapFilter "(&(ldapDisplayName=group)(objectclass=classSchema))" -Properties "SchemaIDGuid").SchemaIDGuid)
$memberAttributeGuid = New-Object Guid @(,(Get-ADObject -Server $server -SearchBase $schemaNC -LdapFilter "(&(ldapDisplayName=member)(objectclass=attributeSchema))" -Properties "SchemaIDGuid").SchemaIDGuid)

$ntaccount = new-object System.Security.Principal.NTAccount $amsServiceAccount
$sid = $ntAccount.Translate([System.Security.Principal.SecurityIdentifier]);

$ace1user = new-object System.DirectoryServices.ActiveDirectoryAccessRule $sid, "WriteProperty", "Allow", $memberAttributeGuid, "None", $groupObjectGuid
 
$path = "AD:\$DN"

$acl = get-acl -Path $path
$acl.AddAccessRule($ace1user)

set-acl -AclObject $acl -Path $path
```

### Further reading

* <https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory>
* <https://specopssoft.com/support/en/password-reset/understanding-privileged-accounts-and-adminsdholder.htm>


# KB000009: Access Manager may return an out-of-date LAPS password, or no password at all

## Summary

When requesting a LAPS password from the web app, the following situations may occur:

1. The user sees a message that says `The requested computer does not have a local admin password`
2. The user receives a password, but when they try to use it on the machine, they are told that the password is incorrect.

## Cause

When a user requests access to a LAPS password, Access Manager will query each of the following sources to find a matching computer and retrieve its LAPS password.

1. The "Legacy LAPS" Active Directory attribute `ms-mcs-AdmPwd`
2. The "new" Windows LAPS Active Directory attribute `msLAPS-Password`
3. The AMS database, for devices running the Access Manager agent and using it to manage their LAPS passwords
4. The Entra ID service

The passwords retrieved are then sorted by their creation date, and the newest password is returned to the user.

Legacy LAPS passwords do not have a creation date stored with them, so they are always placed at the end of the list, and only returned if no other password is found.

If the service account does not have permission to read, or in the case of Windows LAPS, decrypt the password, then that entry is ignored.

For example, if an organization had previously deployed legacy LAPS, and then moved to Windows LAPS, they may have an obsolete password stored in the legacy LAPS attribute. If permissions have not been set up to correctly read the Windows LAPS attributes, Access Manager will only see the legacy LAPS attribute, and return that value. This would result in the user getting a password that no longer works on the target machine.

Another example is if an organization has deployed only legacy LAPS, but permissions have not been granted to read the attributes, then Access Manager will report that the computer does not have a LAPS password.

## Resolution

The first step in resolving the issue is to use the Microsoft native tools to make sure a LAPS password exists in the first place. If the password does exist, then the problem is almost certainly a permissions problem.

### For Active Directory-based LAPS passwords

Follow the steps carefully in the [Active Directory LAPS configuration guide](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps). Use the delegation script provided by the config app to correctly apply the Active Directory permissions.

If you are using encrypted passwords with Windows LAPS, ensure that the AMS service account is added to the authorized password decryptors setting as noted in the guide.

Note that if you add the AMS service account to an existing group that grants LAPS password permissions, then you'll need to restart the AMS server to pick up the new group membership.

### Entra ID-based LAPS passwords

Follow the steps carefully in the [Entra ID LAPS configuration guide](/ams/configuration/deploying-features/setting-up-laps/setting-up-microsoft-laps-for-aad).

Note that if you add scopes to the app registration, you will need to restart the AMS server to refresh its token and pick up the new scope claims.

## Further troubleshooting

If you are still not seeing the correct password presented by the web app, then more information may be available in the server logs.

First, reproduce the issue by querying for the password in the web app.

Then look inside the `access-manager-webapp.log` file, located in the `C:\Program Files\Lithnet Access Manager Server\logs` folder. The log might show an error message or other information as to why the password could not be retrieved from the relevant directory.


# KB000010: The Access Manager agents fail to register on macOS 15 (Sequoia)

## Summary

When registering an Access Manager Agent on macOS 15 (Sequoia), you receive an error message similar to the following.

```
Interop+AppleCrypto+AppleCommonCryptoCryptographicException: The specified item is no longer valid. It may have been deleted from the keychain
```

The issue only occurs with new agent registrations. If agent is installed and working on a macOS 14 machine that is subsequently upgraded to macOS 15, it will continue to work as expected.

## Cause

There is bug in all current versions of .NET that prevents creating certificates on macOS 15. This is documented by Microsoft on the [.NET GitHub Repository](https://github.com/dotnet/announcements/issues/324).

When the Access Manager agent is first registered, it creates a digital certificate, and registers that with the server. The certificate is used for authenticating the client to the server going forward. The .NET bug prevents creation of the certificate, preventing a successful registration from taking place.

Agents that have already created their certificate (on an earlier version of macOS), and are subsequently upgraded to macOS 15, do not have this issue.

However, if an agent that was working, is reset on macOS 15, it will remain broken until the fix is available. The agent reset operation deletes the certificate, requiring a new one to be created. At this point the bug will be triggered.

## Workarounds

The only available workaround is to install and register the Access Manager agent on macOS 14, and then upgrade to operating system to macOS 15.

There is no workaround for agents attempting to register on macOS 15.

## Resolution

This issue requires a bug fix from Microsoft, expected to be available mid-October. Once this is available, Lithnet will issue an updated agent package.


# KB000011: Users report delays in obtaining just-in-time access via AD

## Summary

Users may report a delay in between being granted (just-in-time) JIT access via the web app, and the access seemingly being available.

## Cause

There are several possible causes for delayed JIT access.

1. The user needs to log off and log back on Windows only calculates group membership at logon. This means that for a user to be seen as a member of the local administrators group, they need to log onto a brand new session. There is no way for windows to force a group membership update otherwise.
2. Cross-site replication delays Active Directory has a default inter-site replication delay on 15 minutes. This means changes between domain controllers across sites is only replicates once every 15 minutes, at most. This delay can be longer if there are more sites downstream that need to be replicated to, or if the replication has been set to happen only at scheduled times.

   Access Manager will always try and find a DC in the same site as the computer that is being JIT'd into. However, if there is no DC in the site, or AMS cannot correctly determine the site, AMS will use a DC from it's own site to make the change.

   1. You can improve the site discovery process by installing the Access Manager agent on your devices. The agent will report its connected DC to the AMS server regularly.
   2. If the AMS server can contact the target computer via SMB (TCP 445), it can ask the computer what domain controller it is using.
   3. You can use authorization rules to specify which site or DC should be targeted for any give rule. If you have an OU of computers that are always in a specific OU, you can update the computer authorization rule to specify the site or DC that should be used.

## Further Troubleshooting

The `access-manager-webapp.log` log file contains information about the DC location decision making process. You can perform a JIT operation, locate the relevant section of the log and look for `DCLocator` events, which will indicate the DC that was chosen for the JIT operation and why.


# KB000012: Troubleshooting Windows authentication in the Access Manager Web App

## Summary

Incorrect configuration of Windows authentication can cause users to be trapped in an authentication loop. This prevents them from accessing the web application.

## Cause

There are several possible causes for Windows authentication not working.

### 1. Incorrect SPN

The hostname that the user types into their address bar must be registered as an SPN on the service account in Active Directory. The SPN must be in the format of `HTTP/hostname` where `hostname` is the fully qualified host name that the user is entering into their browser.

```
You can use the `setspn` command to manage SPNs.
    - View a list of SPNs assigned to a service account `setspn -L domain\serviceaccount`
    - View which account an SPN is assigned to `setspn -Q HTTP/hostname`
    - Set the SPN on a service account `setspn -S HTTP/hostname domain\serviceaccount`
```

### 2. Mismatched encryption types

Ensure that AES encryption types are enabled for the AMS service account. If you have performed hardening and disabled RC4, enabling AES may be required to ensure that a compatible encryption type can be negotiated.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-df52c7d23de9d8d6a9a0fa53ad8b18654ea8313c%2Fkrb-aes-options.png?alt=media)

### 3. Use of CNAME records

Chrome-based browsers have a behavior where they [try to authenticate as the target of the CNAME record](https://www.chromium.org/developers/design-documents/http-authentication/).

If the user types `https://ams.lithnet.io` in their address bar, Chrome checks to see if `ams.lithnet.io` is a CNAME. If it is, rather than requesting a Kerberos ticket for `HTTP/ams.lithnet.io`, it requests it for the underlying A record target instead. This is typically the machine itself, e.g., `HTTP/AMS1.domain.local`.

The AMS service performs authentication as the service account, rather than the machine account. As a result, mutual authentication fails.

Possible solutions for this

* Convert the `ams.lithnet.io` record to an A record
* Use Chrome policy to [disable this behavior](https://chromeenterprise.google/policies/#DisableAuthNegotiateCnameLookup). However, be aware this will impact all sites using Windows authentication. It should be tested carefully to ensure it doesn't impact other services.


# KB000013: Access Manager cannot be installed on Windows Server 2016 with TLS 1.0 disabled

## Summary

If you try to install the Access Manager Service on Windows Server 2016, when policies have been applied to harden TLS and remove support for TLS 1.0 and 1.1, AMS will fail to install.

## Cause

The built-in SQL driver in Windows Server 2016. used by the installer, is unable to use TLS 1.1 or TLS 1.2. This causes the installer to fail as it cannot connect to the database.

This impacts only the installer itself. AMS will operate correctly with only TLS 1.2 enabled.

This issue does not impact Windows Server 2019 or later.

## Resolution

The only workaround available at this stage is to temporary enable TLS 1.0 and TLS 1.1 on the server, perform the installation or upgrade, and then disable TLS 1.0 and 1.1 again.

Note that to install future upgrades, the same process will need to be repeated.


# Advanced help topics


# Creating an Entra app registration or Access Manager

## Creating an Entra app for Access Manager

If you are going to be using Entra to authenticate users with OpenID Connect, if you want to access LAPS passwords stored in Entra ID, or you want to install the Lithnet Access Manager agent on Entra-joined devices, you'll need to create an app registration for Access Manager in your Entra ID portal.

You only need a single app registration for the Access Manager instance. Just ensure that you grant the appropriate directory permissions for the scenarios you want to support.

## Step 1: Configure a new application in Entra ID

1. Log into portal.azure.com with administrative credentials, select `More services` and select `Microsoft Entra ID`
2. From the left hand menu, expand `Manage`, select `App registrations` and click `New registration`
3. Enter `Lithnet Access Manager` or another suitable application name, and select `Accounts in this organizational directory only (Single tenant)` as the supported account type
4. Click `Register`
5. Take note of the `Application ID` value, this is our `client ID`
6. Take note of the Directory/Tenant ID
7. From the `Certificates and secrets` page, click `new client secret`, give your secret a name, and then take note of the value provided.

If you want to enable user authentication via OIDC, then you'll also need to complete the following steps

1. From the left-hand menu, click `Manage` then `Authentication`. Click `Add a platform`.
2. Select `Web` as the platform type
3. In the `redirect URI` field enter the base URL where your Access Manager web app is hosted followed by `/auth` (e.g. `https://accessmanager.lithnet.local/auth`)
4. Set the `front-channel logout URL` to be the same as your base URL, with `/auth/logout` appended to it. (e.g. `https://accessmanager.lithnet.local/auth/logout`)
5. Click `Configure`

## Step 2: Grant directory permissions

1. From the `API permissions` page, click `Add permission`, choose `Microsoft Graph`, followed by `Application permissions` and grant the API permissions shown in the tables below, relevant to your scenario
2. Once you have added the permissions, click on `Grant admin consent`, and ensure each permission shows a status of `Granted for <tenant name>`.

#### User authentication using OpenID Connect

| Permission            | Require scenarios                                                                    | Description                                                                                  |
| --------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| Organization.Read.All | - All scenarios                                                                      | Allows Access Manager to read basic tenant information such as the tenant name and tenant ID |
| User.Read             | Allows Access Manager to read information about users in the tenant when they log in |                                                                                              |

#### Accessing LAPS passwords stored in Entra

| Permission                     | Require scenarios                                                                                                                                                                      | Description |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| Organization.Read.All          | Allows Access Manager to read basic tenant information such as the tenant name and tenant ID                                                                                           |             |
| Device.Read.All                | Allows Access Manager to read information about devices in the tenant                                                                                                                  |             |
| Group.Read.All                 | Allows Access Manager to read information about groups and their members                                                                                                               |             |
| AdministrativeUnit.Read.All    | Allows Access Manager to read information about administrative units in the tenant                                                                                                     |             |
| DeviceLocalCredential.Read.All | Allows Access Manager to read LAPS passwords stored in the Entra directory, when using the Windows LAPS agent. Not required if using the Access Manager Agent to manage LAPS passwords |             |

#### Deploying the Access Manager Agent to Entra-joined devices

| Permission                  | Require scenarios                                                                            | Description |
| --------------------------- | -------------------------------------------------------------------------------------------- | ----------- |
| Organization.Read.All       | Allows Access Manager to read basic tenant information such as the tenant name and tenant ID |             |
| Device.Read.All             | Allows Access Manager to read information about devices in the tenant                        |             |
| Group.Read.All              | Allows Access Manager to read information about groups and their members                     |             |
| AdministrativeUnit.Read.All | Allows Access Manager to read information about administrative units in the tenant           |             |


# Setting up agent policies

This guide will walk you through the steps to configure policies for the Lithnet Access Manager Agent.

Agent policies are used to configure features such as *password management*, *RapidLAPS*, and *BitLocker recovery key backup*.

The agent will periodically "check-in" with the Access Manager Server to retrieve the appropriate policy.

## Types of policies

Agent policies are divided into three categories, based on the target operating system: *Windows*, *macOS* and *Linux*.

Each operating system has a **default** policy, and a set of **custom** policies.

You can create custom Access Manager Agent policies that are targeted at specific computers, groups and containers - from Active Directory, Microsoft Entra, or AMS.

## Policy precedence

Policies are processed in the order they appear in the custom agent policy list. The first policy that matches a given computer is the policy that will be used.

You should ensure that the most specific policies (eg policies that target individual computers and groups) are located at the top of the list.

If no matching policy can be found, the default agent policy will be used.

## Default agent policy

The default agent policy is the 'fallback' policy that will be used when a computer does not match any of the custom policies configured.

It should contain settings that are applicable as a default base across your environment.

If all computers should have the same policy settings, then there is no need to configure custom policies at all.

## Creating a new policy

If you need to vary policy settings between devices, then you'll need to create a custom policy, and target it to those devices.

### Step 1. Navigate to an OS-specific policy page

To create an agent policy, first select the operating system you wish to configure policy for in the sidebar under `Access Manager Agent/Agent policies`:

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-2423850afb5c7c9e80fadbf102c3ca1684c663ed%2Fagent-policy-sidebar.png?alt=media)

### Step 2. Create a new custom agent policy

Click the `Create new...` button at the bottom of the custom agent policy list.

### Step 3. Configure general policy settings

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-a26236c28dd9d81483138f0915d8642065da0559%2Fagent-policy-edit-generic.png?alt=media)

On the first page of the policy editor - configure a memorable name and a description for your custom policy.

Next, configure the "Agent check-in interval". This setting determines how frequently the agent should attempt to check-in to the server - in minutes. When an agent checks in, it will receive policy updates, reset local administrator account passwords (if required), and backup disk encryption keys (if required). The default value is to check-in every to 60 minutes.

Next, configure the "targets" for your custom policy. Policies can be targeted at specific computers, groups and containers - from Active Directory, Microsoft Entra, or AMS.

To add a new target to a policy, simply click `Add...` at the bottom of the target list, and follow the prompts to select your target computer, group, or container.

### Step 4. Configure your policy settings

Next, you can configure agent settings by selecting from the tabs on the left-hand side of the policy editor.

For more details, visit the appropriate guide for setting up each feature

* [Setting up Lithnet LAPS](/ams/configuration/deploying-features/setting-up-laps/setting-up-lithnet-laps)
* [Setting up RapidLAPS (Windows only)](/ams/configuration/deploying-features/setting-up-rapid-laps)
* [Setting up BitLocker backup (Windows only)](/ams/configuration/deploying-features/setting-up-bitlocker/setting-up-bitlocker-ams)

### Step 5. Save the policy

To save the custom policy and make it available for clients, simply click the `Save` button in the bottom right-hand corner of the policy editor.

## More information

For more information on the different settings configurable in agent policies, see the corresponding help page:

* [Windows agent policies page](/ams/help-and-support/application-help-pages/access-manager-agent/agent-policies/access-manager-agent-policies-windows-page)
* [macOS agent policies page](/ams/help-and-support/application-help-pages/access-manager-agent/agent-policies/access-manager-agent-policies-macos-page)
* [Linux agent policies page](/ams/help-and-support/application-help-pages/access-manager-agent/agent-policies/access-manager-agent-policies-linux-page)
* [Legacy (v2) agent policies page](/ams/help-and-support/application-help-pages/access-manager-agent/agent-policies/access-manager-agent-policies-amsv2-page)


# Managing word lists

When Access Manager Agent policies are configured to generate passphrases for use with local administrator accounts, they do so using *word lists* - lists of thousands of unique words that are delivered to clients in order for them to generate secure passphrases.

By default, Access Manager comes bundled with one word list: the [EFF diceware wordlist](https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt) from the [Electronic Frontier Foundation](https://www.eff.org/dice), containing 7776 unique English words for use in passphrases.

If, for example, you wish to generate passphrases in a language better suited to your user base, you can import your own word lists with which Access Manager can generate passphrases.

\--

Access Manager comes with a default word list used for generating passphrases. However, you can create your own custom word lists that can be used to generate LAPS passphrases.

From the `Access Manager agent/Password settings` page, you can see the word lists currently available on your system.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-02710fa15d352bdeaa37fb1067717a5f9c3c5f6c%2Fui-page-access-manager-agent-password-settings.png?alt=media)

The built-in word lists cannot be modified, but you can duplicate or add your own word lists.

## Adding a new word list

Click the `Add..` button to add a new word list.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-d41916952d6bfbbe2782044e61b4a3dbfe023698%2Fui-page-access-manager-agent-password-settings-wordlist.png?alt=media)

Click the `Import words from txt file` button to import your custom word list. The text file should have one word per line, and must contain at least 2000 individual words.

Once you save the word list, you can assign the word list to computers using the [agent policy](/ams/help-and-support/advanced-help-topics/setting-up-agent-policies)

\--

You can find a list of "diceware" word lists in other languages for use with Access Manager [here](https://theworld.com/~reinhold/diceware.html#Diceware%20in%20Other%20Languages|outline).


# Password history retention

Access Manager allows you to store a history of previously used local admin passwords, so that if you recover a device from a backup, you can go back in time and get the local admin password that was active at the time the backup was taken.

AMS policies allow you to define both a minimum number of passwords to keep, as well as the minimum number of days a password should be retained for.

If both the `Number of previous passwords to keep` and `Number of days to keep previous passwords` setting is in use, then old passwords will not be removed until both thresholds have passed. For example, if you had a policy to generate a new password every day, to keep a minimum of 5 passwords, and to keep passwords for 365 days, you would have 365 passwords in your history. More examples are in the table provided below.

| Maximum age | Passwords to keep | Days to keep | Effective number of passwords |
| ----------- | ----------------- | ------------ | ----------------------------- |
| 1           | 50                | 0            | 50                            |
| 1           | 0                 | 50           | 50                            |
| 1           | 5                 | 365          | 365                           |
| 1           | 7                 | 1            | 7                             |
| 1           | 7                 | 7            | 7                             |


# Ports and traffic flows

The following diagram details the traffic flows and port requirements for a typical Access Manager environment.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-a775c74cf4242ea4846f750589a78d00f77550b4%2Fams-port-map.png?alt=media)

| Source                       | Destination                                                                 | Destination ports                                               | Description                                                                                                                                                                                                               |
| ---------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AMS server                   | packages.lithnet.io                                                         | TCP 443                                                         | Allows the AMS server to check and notify when updates are available (optional)                                                                                                                                           |
| AMS server                   | graph.microsoft.com                                                         | TCP 443                                                         | Used to access the graph API when authenticating Microsoft Entra joined devices                                                                                                                                           |
| AMS server                   | login.microsoftonline.com                                                   | TCP 443                                                         | Used to authenticate to the graph API when authenticating Microsoft Entra joined devices                                                                                                                                  |
| AMS server                   | The hostname specified in the issuer/authority field of the OIDC setup page | TCP 443                                                         | Required for claims validation when using OpenID Connect                                                                                                                                                                  |
| AMS server                   | Active Directory Domain Controllers                                         | LDAP TCP 389, CLDAP UDP 389                                     | Directory lookups, site lookups, BitLocker Password lookups, LAPS password lookups, JIT group membership modifications                                                                                                    |
| AMS server                   | Active Directory Domain Controller Global Catalog Servers                   | Global Catalog TCP 3268                                         | Computer name lookups                                                                                                                                                                                                     |
| AMS server                   | Active Directory Domain Controllers                                         | RPC Endpoint Mapper TCP 135, RPC dynamic port range 49152-65535 | Authorization queries and ACL evaluation                                                                                                                                                                                  |
| AMS server                   | Active Directory DNS servers                                                | DNS UDP 53                                                      | DNS lookups                                                                                                                                                                                                               |
| AMS server                   | SQL Database                                                                | TSQL TCP 1433                                                   | Connectivity to the AMS database (when not using SQL Express)                                                                                                                                                             |
| AMS server                   | JIT target computers                                                        | RPC over SMB 445                                                | Used to query a computer when performing a JIT request to determine what DC and site it is in. This is optional, and AMS will fall back to using sites and services to try and find the closest DC to the target computer |
| Access Manager Agent         | AMS Server                                                                  | HTTPS TCP 443                                                   | Agent registration, check in, and password management                                                                                                                                                                     |
| Access Manager web-app users | AMS Server                                                                  | HTTP TCP 80, HTTPS TCP 443                                      | Access to the web app                                                                                                                                                                                                     |
| Access Manager web-app users | OpenID Connect Identity Provider                                            | HTTPS TCP 443                                                   | OpenID Connect authentication                                                                                                                                                                                             |


# Internet access requirements

## Access Manager Service installer

The Access Manager service installer can be operated offline, however, it does require downloading and installing the following dependencies

* [.NET Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed
* [ASP.NET Core Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/10.0/runtime) 10.0 or later installed

If you plan to use an SQL Express database, then you also need to [download the SQL Express installer](https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLEXPR_x64_ENU.exe) - however, do not install it manually. Copy the file to the server, and the installer will prompt you for the location of the installer, so it can perform the installation using the correct parameters. Installing SQL express manually will result in certain features like backup capability being broken.

For the installer to download the necessary prerequisites itself, the following hosts must be contactable.

| Capability    | Destination host            | Destination ports |
| ------------- | --------------------------- | ----------------- |
| .NET runtimes | builds.dotnet.microsoft.com | TCP 443           |
| SQL Express   | download.microsoft.com      | TCP 443           |

## Access Manager Service

Internet access is not required for the Access Manager service to operate, unless you want to use the features below

| Capability                                                                | Destination host                                                            | Destination ports |
| ------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------- |
| Be notified when new updates are available for the Access Manager service | packages.lithnet.io                                                         | TCP 443           |
| Enable devices to authenticate to the Access Manager API                  | graph.microsoft.com login.microsoftonline.com                               | TCP 443           |
| Entra ID authentication for end users                                     | login.microsoftonline.com                                                   | TCP 443           |
| OpenID Connect authentication                                             | The hostname specified in the issuer/authority field of the OIDC setup page | TCP 443           |

## Access Manager Agent

The Access Manager agent does not have any internet access requirements.


# Access evaluation in Access Manager Service (AMS)

AMS uses the Windows built-in authorization subsystem to determine if a user is authorized to access a resource.

When a user requests access to a computer, AMS will obtain an 'identification token' from the domain where the *computer* resource is located. This identification token will contain the group membership of the user, from the perspective of the computer that is being accessed. All groups that are visible from the computer's domain will be included in the token. This is similar to a token a user would get had they logged onto that computer directly.

This means that depending on the location of the resource the user is accessing, you'll need to place your access control rules accordingly.

## Within the same domain

When the requesting user and computer are in the same domain, the user's access token will contain all the domain local, global, and universal groups memberships from that domain. No special consideration is needed in this case.

## Within the same forest

When the requesting user and computer are in different domains in the same forest, the user's access token will contain global and universal groups from the forest, as well as domain local groups from the domain where the computer is located.

Domain local groups from the user's home domain are not present. Therefore, a user must be granted access to the resource via a global or universal group from that forest

## Across forests with a two-way trust

If the user and computer are in different forests, provided there is a two-way trust in place then the user will have their group membership built in the other forest. The user will need to be a member of a domain local group in that domain in order to gain access.

## Access across a forest with a one-way trust

When a one-way forest trust is in place, access control must work a little differently. Let's call the forest containing AMS the RED, and the forest containing the computer is GREEN.

The GREEN forest must of course trust the RED forest. Access Manager will not work if there is no trust to the target forest.

In this scenario, the GREEN forest trusts the RED forest, but the RED forest does not trust the GREEN forest. Users from the RED forest are able to log in to the GREEN forest and access objects within. Users from the GREEN forest can't access resources within the RED forest.

AMS uses Kerberos S4U2Self in order to obtain the 'identification token' mentioned earlier. Unfortunately, S4U is not supported across a one-way trust. When AMS detects a request that would cross a one-way trust, it modifies the way it performs the access checks.

When a user from the RED forest tries to obtain access to a computer from the GREEN forest, AMS will use the user's home domain (rather than the computer's domain) to build the access token. This means that any group membership that the user may have in the GREEN forest is not seen at all when evaluating access to a resource in the GREEN forest.

In order to support users from the RED forest accessing computers in the GREEN forest, you must ensure that a group from the RED forest is present on the ACL granting access to the computers in the GREEN forest.


# Recovering from a lost encryption certificate

If you lose access to the encryption certificate's private key, any current and historical passwords encrypted with that key are not recoverable. This is why backups are so important.

In order to restore local admin password access to your environment, you need to publish a new key, and force the agents to generate a new password and encrypt it with that key.

## Recovery steps for passwords stored in Access Manager

### Step 1: Generate a new certificate

From the Access Manager Service configuration tool, visit the `Access Manager Agent/Password settings` click `Generate new...` to create a new certificate.

### Step 2: Backup the new certificate

Once the certificate has been generated, click `Export...` to back up the certificate. Choose a strong password, and keep this file safe, preferably in an offline location.

### Step 3: Publish the new certificate

Once you've secured your backup key, click `Set Active` to activate the new certificate.

### Step 4: Expire all computer passwords

On the `Access Manager Agent/Devices` page, select all the appropriate devices and click `Expire password`. Within 60 minutes, the agents that are online will generate new passwords and store them in the directory.

Unfortunately, password history is not recoverable.

## Recovery steps for Lithnet LAPS passwords stored in Active Directory (deprecated)

These steps only apply to cases where you have the v2 agent configured on Active Directory-managed devices, storing passwords in Active Directory

### Step 1: Generate a new certificate

From the Access Manager Service configuration tool, visit the `Directory Configuration/Active Directory/Lithnet LAPS page (deprecated)`, select the forest you need to recover from the drop-down list, and click `Generate new...`.

### Step 2: Backup the new certificate

Once the certificate has been generated, click `Export...` to back up the certificate. Choose a strong password, and keep this file safe, preferably in an offline location.

### Step 3: Publish the new certificate

Once you've secured your backup key, click `Publish` to generate a new script to publish this certificate to AD. Run the script as a domain admin of the root forest.

### Step 4: Force expire all computer passwords

In order to force clients to immediately generate a new password, we must set the `lithnetPasswordExpiry` attribute on each computer to `0`.

You can use the following script to do this. Set the `$ou` variable to the DN of the container where the computers are located, or leave it as-is to expire the password of all computers in the domain.

```powershell
# Set the OU variable to the DN of the container containing the computers that need their passwords reset, or leave it blank to reset all computers in the domain
$ou = ""

if ($ou -eq "")
{
    $ou = (Get-ADDomain).DistinguishedName
}

$InformationPreference = "Continue"

Get-ADComputer -SearchBase $ou -SearchScope Subtree -Properties DistinguishedName -LDAPFilter "(objectCategory=computer)" | % {
    $_ | Set-AdComputer -Replace @{lithnetAdminPasswordExpiry=0}
    Write-Information "Expired password on computer $($_.Name)"       
 }
```

When the agent next runs (by default this is every 60 minutes) it will detect that it's password has been expired, and generate a new password, and encrypt it using the newly published certificate in the directory.

If you are using the password history feature, those previously used passwords can no longer be decrypted. You should delete them from the directory using the following script to avoid users being presented with `Password could not be decrypted` warnings in the web app.

```powershell
# Set the OU variable to the DN of the container containing the computers that need their password history cleared, or leave it blank to clear the history from all computers in the domain
$ou = ""

if ($ou -eq "")
{
    $ou = (Get-ADDomain).DistinguishedName
}

$InformationPreference = "Continue"

Get-ADComputer -SearchBase $ou -SearchScope Subtree -Properties DistinguishedName -LDAPFilter "(objectCategory=computer)" | % {
    $_ | Set-AdComputer -Clear "lithnetAdminPasswordHistory"
    Write-Information "Cleared password history for computer $($_.Name)"       
 }
```


# Script-based authorization

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-777b39409f48f271de2f52ccc6f33e3248829f95%2Fbadge-enterprise-edition-rocket.svg?alt=media) Script-based authorization is an [Enterprise edition feature](/ams/access-manager-editions)

If you'd like to make dynamic authorization decisions, outside the static ACL model, you can utilize a PowerShell script to do this.

Access Manager can call a script that contains a function called `Get-AuthorizationResponse` that takes a user, computer, and logger as input parameters. From there you can make a decision on what the user should be allowed or denied access to, or choose to not make an authorization decision at all.

Access Manager uses the response you provide to create a dynamic ACL for the user, and includes it in the access evaluation of all applicable targets.

## Example script

```powershell
function Get-AuthorizationResponse {
	param(
		$User,
		$Computer
	)
	Write-Information  "We're in PowerShell!"
	Write-Information "Checking if $($User.MsDsPrincipalName) is allowed access to $($Computer.MsDsPrincipalName)"

	# Create an object to hold our authorization decisions
	# Set IsAllowed to true to allow access, or set IsDenied to explicitly deny access, or leave both as false if no decision was made. This will allow other rules to be evaluated.
	$Response = [PSCustomObject]@{
		IsLocalAdminPasswordAllowed = $false
		IsLocalAdminPasswordDenied = $false
		IsLocalAdminPasswordHistoryAllowed = $false
		IsLocalAdminPasswordHistoryDenied = $false
		IsJitAllowed = $false
		IsJitDenied = $false
		IsBitLockerAllowed = $false
		IsBitLockerDenied = $false
		IsRapidLapsLoginAllowed = $false
		IsRapidLapsLoginDenied = $false
		IsRapidLapsElevationAllowed = $false
		IsRapidLapsElevationDenied = $false
	}

	# Return the authorization response to Access Manager to process
	Write-Output $Response;
}
```

## Logging information

You can use the Write-Information, Write-Warning, Write-Verbose cmdlets to write to the AMS log file and document your authorization decisions. Note that if you use Write-Error, or if an exception is thrown and not handled, the authorization evaluation for the entire access request will fail.

## Performance

Be aware of performance when writing external authorization scripts. From the user's perspective, they will be waiting in the browser while the access evaluation takes place. If you have a slow script, or lots of scripts, this wait time may seem excessive.

Scripts that take longer than 30 seconds to complete will be terminated by Access Manager, and the user's authorization request will fail.

### `$user` object

The user object has the following properties you can access

| Property Name       | Type   | Description                                                        |
| ------------------- | ------ | ------------------------------------------------------------------ |
| `Description`       | string | The value of the description field in active directory, if present |
| `DisplayName`       | string | The display name of the user                                       |
| `DistinguishedName` | string | The DN of the user from Active Directory                           |
| `EmailAddress`      | string | The user's email address (e.g. `user@domain.com`)                  |
| `GivenName`         | string | The user's given name                                              |
| `Guid`              | Guid   | The object GUID from the directory object                          |
| `MsDsPrincipalName` | string | The NT4-style name of the user (e.g. `DOMAIN\user`)                |
| `SamAccountName`    | string | The samAccountName of the user (e.g. `user`)                       |
| `Sid`               | string | The Security Identifier of the user (e.g. `S-1-5-x`)               |
| `Surname`           | string | The user's surname                                                 |
| `UserPrincipalName` | string | The user's UPN (e.g. `user@domain.local`)                          |

### `$computer` object

The computer object has the following properties you can access

| Property Name        | Type                                             | Description                                                                                 |
| -------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| `Description`        | string                                           | The value of the description field in active directory, if present                          |
| `DisplayName`        | string                                           | The display name of the computer                                                            |
| `DnsHostName`        | string                                           | The user's email address (e.g. `user@domain.com`)                                           |
| `AuthorityId`        | string                                           | The identifier that represents the authority ID that manages the computer                   |
| `AuthorityDeviceId`  | string                                           | An identifier, specific to the authority type, that uniquely represents the computer object |
| `AuthorityType`      | `ActiveDirectory`, `AzureActiveDirectory`, `Ams` | The type of authority that manages the computer                                             |
| `FullyQualifiedName` | string                                           | The fully qualified name of the computer. (e.g. `DOMAIN\PC1$`)                              |
| `Name`               | string                                           | The name of the computer (e.g. `PC1`)                                                       |
| `ObjectId`           | string                                           | The computer's unique AMS object ID                                                         |

If the computer is an Active Directory-joined computer, then the following additional properties may be available

| Property Name       | Type   | Description                                              |
| ------------------- | ------ | -------------------------------------------------------- |
| `DistinguishedName` | string | The DN of the user from Active Directory                 |
| `Guid`              | Guid   | The object GUID from the directory object                |
| `MsDsPrincipalName` | string | The NT4-style name of the computer (e.g. `DOMAIN\PC1$`)  |
| `SamAccountName`    | string | The samAccountName of the computer (e.g. `PC1`)          |
| `Sid`               | string | The Security Identifier of the computer (e.g. `S-1-5-x`) |


# Customized auditing with PowerShell notification channels

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-9298cf970cb766c1ca4d9216514713768f459b2d%2Fui-page-auditing-powershell-edit-channel.png?alt=media)

Access Manager's auditing framework allows you to extend the product's auditing capabilities through the use of PowerShell scripts. Using a PowerShell notification channel, you can send audit events to any system you can connect to with PowerShell.

## Example script

The following script is a very simple example that extracts some audit information from the supplied `eventData` object, and writes to the PowerShell information stream.

```powershell
function Write-AuditEvent{
    param(
    $eventData)

    Write-Information "We're in PowerShell for auditing!";

    # Learn more about PowerShell auditing scripts https://go.lithnet.io/fwlink/jgazdugh

    $user = $eventData.User.FullyQualifiedName
    $target = $eventData.Request.Target
    $result = $eventData.Response.Code
    $accessType = $eventData.Response.AccessType
    $isSuccess = $eventData.Response.IsSuccess
    
    if ($isSuccess)
    {
        Write-Information "User $user successfully requested $accessType access to $target";
    }
    else
    {
        Write-Information "User $user was denied $accessType access to $target with response code $result";
    }
}

```

## Script Parameters

### `$eventData`

The `$eventData` variable is an object that contains information about the access request. See the `Available variables` section below for the list of available variables you can use.

## Logging information

You can use the Write-Information, Write-Warning, Write-Verbose cmdlets to write to the AMS log file. Note that if you use Write-Error, or if an exception is thrown and not handled, the auditing event will fail. If you tick the `Deny the user's request if the delivery of this notification fails` option, the user's request will be denied.

## Performance

If you use the `Deny the user's request if the delivery of this notification fails`, the user's access request cannot be granted until your script completes. From the user's perspective, they will be waiting in the browser while the audit event takes place. If you have a slow script, or lots of scripts, this wait time may seem excessive.

If you do not use this option, the user is granted their access request, and the audit event is delivered asynchronously. Any failures will be logged in the AMS logs, but the user will not be denied access.

Scripts must complete within 10 seconds, or they are cancelled by the Access Manager engine.

## Available variables

The [audit variables](/ams/help-and-support/advanced-help-topics/audit-variables) page contains a full list of all valid variables that you can use throughout your scripts.

## Legacy (v1) PowerShell scripts

Access Manager v1 used a slightly different PowerShell script format. These scripts are still supported by Access Manager v3, but only work for Computer access auditing. You should upgrade any scripts to v3 scripts to ensure full audit information for all types of access requests is available.

```powershell
function Write-AuditLog{
    param(
    [hashtable]$tokens,
    [bool]$isSuccess
)
}
```


# Variables available in audit notification channels

Access Manager provides a comprehensive set of variables you can use in your audit notifications.

See the guides on [PowerShell auditing scripts](/ams/help-and-support/advanced-help-topics/audit-scripts) and [HTML and JSON audit templates](/ams/help-and-support/advanced-help-topics/audit-templates) to learn how to use these variables in your audit scripts and templates.

## Global properties

| Property      | Format/Type | Description                                     |
| ------------- | ----------- | ----------------------------------------------- |
| `DateTime`    | string      | The current date and time, in local server time |
| `DateTimeUtc` | string      | The current date and time, in UTC time          |

## `Request` element

This group of attributes represents the incoming request

| Property                    | Format/Type                 | Description                                                         |
| --------------------------- | --------------------------- | ------------------------------------------------------------------- |
| `Request.Target`            | string                      | The name of the target that the user requested access to            |
| `Request.TargetType`        | `Computer` or `Role`        | The type of resource the user requested access to                   |
| `Request.Reason`            | string                      | The reason that the user provided when requesting access            |
| `Request.IPAddress`         | IPv4 or IPv6 address string | The IP address of requestor                                         |
| `Request.HostName`          | string                      | The host name of the requestor, if available via reverse DNS lookup |
| `Request.RequestedDuration` | TimeSpan                    | The requested duration of access                                    |

## `Response` element

This group of attributes represents the result of the access evaluation

| Property                          | Format/Type                                                                                                                       | Description                                                                                                 |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `Response.Target`                 | string                                                                                                                            | The name of the target that the access request was evaluated against                                        |
| `Response.TargetType`             | `Computer` or `Role`                                                                                                              | The type of resource that was evaluated                                                                     |
| `Response.IsSuccess`              | `true` or `false`                                                                                                                 | Indicates if access was granted to the resource                                                             |
| `Response.IsFailure`              | `true` or `false`                                                                                                                 | Indicates if access was denied to the resource                                                              |
| `Response.IsApproved`             | `true` or `false`                                                                                                                 | Indicates if access was approved to the resource                                                            |
| `Response.NotificationChannels`   | string                                                                                                                            | A comma-separated list of audit channels IDs that apply to this access response                             |
| `Response.MatchedRule`            | string                                                                                                                            | The ID of the authorization rule that was used to make the access decision                                  |
| `Response.MatchedRuleDescription` | string                                                                                                                            | The 'description' field from the authorization rule that was used to make the access decision               |
| `Response.ExpireAfter`            | TimeSpan                                                                                                                          | The duration of time that access was granted for                                                            |
| `Response.Code`                   | `Success`, `NoMatchingRuleForTarget`, `NoMatchingRuleForUser`, `ExplicitlyDenied`, `UserRateLimitExceeded`, `IpRateLimitExceeded` | The result of the authorization decision. Codes other than `Success` represent an 'access denied' response. |
| `Response.AccessType`             | `None`, `LocalAdminPassword`, `LocalAdminPasswordHistory`, `Jit`, `Bitlocker`, `DeviceLogin`, `DeviceElevation`                   | The type of access that was granted                                                                         |
| `Response.AccessTypeDescription`  | string                                                                                                                            | The friendly name of the type of access that was granted                                                    |
| `Response.AccessExpiryDate`       | DateTime                                                                                                                          | The date and time when the user's access will expire, expressed in local server time                        |
| `Response.Message`                | string                                                                                                                            | A user-friendly message describing the outcome of the access decision                                       |
| `Response.WorkflowResult`         | `None`, `Approved`, `Rejected`, `Pending`                                                                                         | The approval result of the workflow operation                                                               |

## `User` element

This group of attributes represents the user who performed the access request

| Property                  | Format/Type | Description                                        |
| ------------------------- | ----------- | -------------------------------------------------- |
| `User.Username`           | string      | The `samAccountName` of the user requesting access |
| `User.FullyQualifiedName` | string      | The user's username in `domain\username` format    |
| `User.DisplayName`        | string      | The display name of the user                       |
| `User.Sid`                | string      | The user's security identifier                     |
| `User.EmailAddress`       | string      | The user's email address                           |

## `Role` element

If the authorization request was for a role, then this property will be populated with information about the role authorization rule

| Property                      | Format/Type | Description                                                                                           |
| ----------------------------- | ----------- | ----------------------------------------------------------------------------------------------------- |
| `Role.Name`                   | string      | The name of the role                                                                                  |
| `Role.Description`            | string      | The description of the role                                                                           |
| `Role.MaximumAllowedDuration` | TimeSpan    | The maximum amount of time that the user can request for the role according to the authorization rule |

## `Computer` element

If the authorization request was for a computer, then this property will be populated with information about the computer

| Property                      | Format/Type                                      | Description                                                      |
| ----------------------------- | ------------------------------------------------ | ---------------------------------------------------------------- |
| `Computer.Name`               | string                                           | The short name of the computer                                   |
| `Computer.Description`        | string                                           | The description of the computer                                  |
| `Computer.FullyQualifiedName` | string                                           | The name of the computer in `domain\computer` format             |
| `Computer.DnsHostName`        | string                                           | The computer's DNS host name, if known                           |
| `Computer.DisplayName`        | string                                           | The computer's display name                                      |
| `Computer.ObjectId`           | string                                           | A unique identifier for the computer                             |
| `Computer.Sid`                | string                                           | The computer's security identifier                               |
| `Computer.AuthorityType`      | `ActiveDirectory`, `AzureActiveDirectory`, `Ams` | The authoritative directory where this computer is located       |
| `Computer.AuthorityId`        | string                                           | The ID of the authority where the computer is located            |
| `Computer.AuthorityDeviceId`  | string                                           | The unique ID for the device, specific to the device's authority |

## `RapidLapsLogin` element

If the authorization request was for workstation login/unlock via *RapidLAPS*, then this property will be populated with information about the *RapidLAPS* login request

| Property                                | Format/Type     | Description                                                                                                   |
| --------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------- |
| `RapidLapsLogin.Type`                   | string          | The type of RapidLAPS request, will always be `Logon`                                                         |
| `RapidLapsLogin.DeviceLoginAccountName` | string          | The local account used for RapidLAPS login                                                                    |
| `RapidLapsLogin.UsageScenario`          | string          | A description of where in the operating system the request occurred from (e.g., `Logon`, `UnlockWorkstation`) |
| `RapidLapsLogin.Responses`              | Response\[]     | *See below*                                                                                                   |
| `RapidLapsLogin.LoggedOnUsers`          | LoggedOnUser\[] | *See below*                                                                                                   |

## `RapidLapsElevation` element

If the authorization request was for UAC elevation via *RapidLAPS*, then this property will be populated with information about the *RapidLAPS* elevation request

| Property                                    | Format/Type     | Description                                                                                                                                                                                                                                                                                         |
| ------------------------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `RapidLapsElevation.Type`                   | string          | The type of *RapidLAPS* request, will always be "Elevation"                                                                                                                                                                                                                                         |
| `RapidLapsElevation.DeviceLoginAccountName` | string          | The local account used for RapidLAPS elevation                                                                                                                                                                                                                                                      |
| `RapidLapsElevation.ComOperationName`       | string          | The name of the COM operation the user is attempting to elevate (if applicable)                                                                                                                                                                                                                     |
| `RapidLapsElevation.SessionID`              | string          | The requesting user's Session ID                                                                                                                                                                                                                                                                    |
| `RapidLapsElevation.ProcessID`              | string          | The parent process ID of the elevation (if applicable)                                                                                                                                                                                                                                              |
| `RapidLapsElevation.ProcessName`            | string          | The parent process name of the elevation (if applicable)                                                                                                                                                                                                                                            |
| `RapidLapsElevation.ElevationType`          | string          |                                                                                                                                                                                                                                                                                                     |
| `RapidLapsElevation.RequesterUsername`      | string          | The username of the user requesting elevation                                                                                                                                                                                                                                                       |
| `RapidLapsElevation.RequesterSid`           | string          | The security identifier (SID) of the user requesting elevation                                                                                                                                                                                                                                      |
| `RapidLapsElevation.RequesterDisplayName`   | string          | The display name of the user requesting elevation                                                                                                                                                                                                                                                   |
| `RapidLapsElevation.ProductName`            | string          | The product name of the executable being elevated (if applicable)                                                                                                                                                                                                                                   |
| `RapidLapsElevation.Publisher`              | string          | The publisher name of the executable being elevated (if applicable)                                                                                                                                                                                                                                 |
| `RapidLapsElevation.FileDescription`        | string          | The file description of the executable being elevated (if applicable)                                                                                                                                                                                                                               |
| `RapidLapsElevation.CredUIFlags`            | string          | The internal flags passed to CredUI (e.g., the credential selector in UAC). [GitHub](https://github.com/lithnet/windows-credential-provider/blob/b010d4ff3f3ff41eac0479e6c8c373907227ad2a/src/Lithnet.CredentialProvider/Enums/CredUIWinFlags.cs)                                                   |
| `RapidLapsElevation.ConsentUIFlags`         | string          | The internal flags passed to ConsentUI (e.g., UAC). For more information, see our `windows-credential-provider` repository on [GitHub](https://github.com/lithnet/windows-credential-provider/blob/b010d4ff3f3ff41eac0479e6c8c373907227ad2a/src/Lithnet.CredentialProvider/Enums/ConsentUIFlags.cs) |
| `RapidLapsElevation.UsageScenario`          | string          | A description of where in the operating system the request occurred from; will always be "CredUI"                                                                                                                                                                                                   |
| `RapidLapsElevation.Responses`              | Response\[]     | *See below*                                                                                                                                                                                                                                                                                         |
| `RapidLapsElevation.LoggedOnUsers`          | LoggedOnUser\[] | *See below*                                                                                                                                                                                                                                                                                         |
| `RapidLapsElevation.Hashes`                 | string\[]       | A list of hashes of the executable the user is attempting to run                                                                                                                                                                                                                                    |
| `RapidLapsElevation.Signature`              | Signature       | Contains signing information                                                                                                                                                                                                                                                                        |

### `Signature` data structure

The `RapidLapsElevation.Signature` field contains information about the code signing of the executable run by the user.

| Property  | Format/Type | Description                                                         |
| --------- | ----------- | ------------------------------------------------------------------- |
| `State`   | string      | The status of the digital signature (e.g. Valid, Invalid, etc.)     |
| `Signers` | Signer\[]   | A list of each code signing certificate used to sign the executable |

#### `Signer` data structure

The `Signer` data structure is used to represent an entity that has digitally singed an executable.

| Property                    | Format/Type             | Description                                          |
| --------------------------- | ----------------------- | ---------------------------------------------------- |
| `SignerCertificate`         | SignatureCertificate    | The certificate used for code signing                |
| `CounterSignerCertificates` | SignatureCertificate\[] | All countersigner certificates used for code signing |

**`SignatureCertificate` data structure**

The `SignatureCertificate` data structure represents the elements of an *X.509* code signing certificate.

| Property            | Format/Type | Description                                 |
| ------------------- | ----------- | ------------------------------------------- |
| `Thumbprint`        | string      | The certificate's thumbprint                |
| `SerialNumber`      | string      | The certificate's serial number             |
| `Subject`           | string      | The certificate's subject                   |
| `DisplayName`       | string      | The certificate's display name              |
| `Issuer`            | string      | The certificate issuer's distinguished name |
| `IssuerDisplayName` | string      | The certificate issuer's display name       |
| `NotBefore`         | DateTime    | The issuance date of the certificate        |
| `NotAfter`          | DateTime    | The expiry date of the certificate          |

### `Response` data structure

The `RapidLapsLogin.Responses` and `RapidLapsElevation.Responses` fields contain a list of responses to any prompts defined in the RapidLAPS policy.

| Property | Format/Type | Description                                     |
| -------- | ----------- | ----------------------------------------------- |
| `Id`     | string      | Unique identifier for the prompt message        |
| `Label`  | string      | The human-readable label for the prompt         |
| `Type`   | string      | The type of prompt (e.g., Text, Checkbox, etc.) |
| `Value`  | string      | The value provided as an answer to the prompt   |

### `LoggedOnUser` data structure

The `RapidLapsLogin.LoggedOnUsers` and `RapidLapsElevation.Responses` fields contain a list of users logged into the machine at the time of the request.

| Property          | Format/Type | Description                                  |
| ----------------- | ----------- | -------------------------------------------- |
| `UserName`        | string      | The user's username                          |
| `SessionID`       | integer     | The user's Windows Session ID                |
| `IsRemoteSession` | boolean     | Indicates if the user was logged in remotely |


# Setting up audit templates

Access Manager provides a [comprehensive set of variables](/ams/help-and-support/advanced-help-topics/audit-variables) you can use in your HTML and JSON audit templates.

Access Manager uses the [Handlebars](https://handlebarsjs.com/guide/) language to allow you to insert variables into templates, and even perform conditional rendering of your template, based on the contents of the audit data.

## HTML example

In this simple example, we can see reference to the `Response.Target` attribute, and some conditional rendering based on the value of `Response.IsSuccess`.

```html
<html>
<div>
    <p>Access to {{Response.Target}} was {{#if Response.IsSuccess}}granted{{else}}denied{{/if}} for {{user.FullyQualifiedName}}</p>
</div>
</html>
```

## JSON example

In this example, we can see examples of conditional rendering of a Microsoft Teams message card, inside the summary and title elements, as well as the conditional addition of the `computer` section.

```json
{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "{{#if Response.IsSuccess}}✅ Access to a {{Response.TargetType}} was granted{{else}}❌ Access to a {{Response.TargetType}} was denied{{/if}}",
  "title": "{{#if Response.IsSuccess}}✅ Access to a {{Response.TargetType}} was granted{{else}}❌ Access to a {{Response.TargetType}} was denied{{/if}}",
  "sections": [
    {
      "text": "{{Response.message}}"
    },
    {
      "title": "Details",
      "facts": [
        {
          "name": "Requested access",
          "value": "{{Response.AccessTypeDescription}}"
        },
        {
          "name": "Name",
          "value": "{{user.DisplayName}}"
        },
        {
          "name": "User name",
          "value": "{{user.FullyQualifiedName}}"
        },
        {{#if Computer}}
        {
          "name": "Computer",
          "value": "{{computer.FullyQualifiedName}}"
        },
        {{/if}}
        {{#if Response.IsSuccess}}
        {
          "name": "Access expiry",
          "value": "{{Response.AccessExpiryDate}}"
        },
        {
          "name": "Matched rule",
          "value": "{{Response.MatchedRuleDescription}}"
        },
        {{/if}}
        {
          "name": "Request reason",
          "value": "{{Request.Reason}}"
        }
      ]
    }
  ]
}

```


# Backup and Restore

## Backing up the AMS server

All the data for your AMS instance is stored in the AMS database. It is important that you regularly back up this database, and ensure that the backups are stored safely.

If you chose to install AMS using the pre-configuration SQL express instance, then you can configure backups through the `App configuration/Database` screen.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-5499fbdc0226e6c198b50886de60a5d21c1be7c0%2Fui-page-database.png?alt=media)

If you are using Azure SQL, Amazon RDS, or an external SQL server instance, you must configure the backups manually on those host platforms.

## Backing up the AMS master key

The AMS master key protects all sensitive information inside the database. It is uniquely protected so that the AMS service account can decrypt it automatically. If that process fails, you will need a master key recovery password to restore access to the service.

From the `App config/Security` page, ensure that you have created a recovery password, and store this password in an offline, secure location.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-b5a0a1417d950a9a1ac820b388d106c01ff84c74%2Fui-page-security.png?alt=media)

In the event that the service cannot decrypt its own master key, you'll be prompted for a recovery password when you launch the configuration tool.

### Backing up the encryption certificates

If you have deployed the Access Manager Agent, you'll need to ensure you have a backup of your password encryption certificates, and their private key.

From the `Access Manager Agent/Password settings` page, export the certificates that appear here. Choose a very strong password, and store the resulting PFX somewhere very safe. Preferably in offline storage. Remember that access to this key will allow someone to decrypt all the local admin passwords in your environment.

If you have have legacy (v2) agents in your environment, you'll also need to backup the certificates used to encrypt passwords stored in Active Directory. The v3 agent does not store passwords in AD, so you can skip this step if you only have v3 agents deployed.

From the `Directory configuration/Active Directory/Lithnet LAPS (deprecated)` page, select the forest that contains the certificate you want to back up, and click `View Certificate`. From the `Details` tab, click `Copy to file`, making sure to select the option to export the private key when prompted.

## Restoring AMS from a backup

### Restoring the database when using the pre-configured SQL Express instance

* Stop the Lithnet Access Manager service using the Windows services console.
* Download and install [SQL Server Management Studio (SSMS)](https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16)
* Once installed, connect to the SQL express instance using the server and instance of `.\AMS` in the `Server` field
* Follow [the steps located in this guide](https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/restore-a-database-backup-using-ssms?view=sql-server-ver16) for performing the actual restore.
* Once the database has been restored, restart the Lithnet Access Manager Service from the services console
* Open the configuration tool and confirm the new settings

### Restoring the database when using an externally-managed database

* Stop the Lithnet Access Manager service using the Windows services console.
* Refer to the Azure or Amazon RDS documentation for restoring the database in their respective environments.
* Once the database has been restored, restart the Lithnet Access Manager Service from the services console
* Open the configuration tool and confirm the new settings

### Restoring the encryption certificate

If you have an encryption key backup you want to restore, then use the AMS configuration tool to import the PFX file into the database.

This can be performing using the `import` button on either the `Access Manager Agent/Password settings` or `Directory configuration/Active Directory/Lithnet LAPS (deprecated)`, depending on which type of encryption certificate it is.

## Recovering from a lost encryption certificate private key

If you lose access to the encryption certificate's private key, any current and historical passwords encrypted with that key are not recoverable. This is why backups are so important.

However, you can publish a new key, and force the agents to generate a new password and encrypt it with that key. See the guide on [Recovering from a lost encryption certificate](/ams/help-and-support/advanced-help-topics/recovering-from-a-lost-encryption-certificate) for more details.


# Event ID reference

## Access Manager Server

| Event ID | Severity      | Description                                                                              |
| -------- | ------------- | ---------------------------------------------------------------------------------------- |
| 2000     | Informational | A user has requested access to a computer                                                |
| 2001     | Informational | A user has been added to a local SAM group                                               |
| 2002     | Informational | A user has been removed from a local SAM group                                           |
| 2003     | Informational | The JIT worker service has created a new group                                           |
| 2004     | Informational | The JIT worker service has deleted a group                                               |
| 2005     | Informational | The JIT worker service has created a new dynamic group                                   |
| 2006     | Informational | The JIT worker service has deleted a dynamic group                                       |
| 2007     | Informational | JIT access has been granted to a user via PAM                                            |
| 2008     | Informational | JIT access has been revoked from a user via PAM                                          |
| 2009     | Informational | A user has requested access to a role                                                    |
| 2010     | Informational | JIT access has been granted to a user via the scheduler                                  |
| 2011     | Informational | JIT access has been revoked from a user via the scheduler                                |
| 2012     | Informational | The JIT scheduler determined that the user no longer exists                              |
| 2013     | Informational | The JIT scheduler determined that the group no longer exists                             |
| 2101     | Informational | A computer authorization rule has been added                                             |
| 2102     | Informational | A computer authorization rule has been deleted                                           |
| 2103     | Informational | A computer authorization rule has been modified                                          |
| 2104     | Informational | A role authorization rule has been added                                                 |
| 2105     | Informational | A role authorization rule has been deleted                                               |
| 2106     | Informational | A role authorization rule has been modified                                              |
| 2200     | Informational | The database does not exist                                                              |
| 2201     | Informational | The database has been created                                                            |
| 2202     | Informational | Database upgrade is required                                                             |
| 2203     | Informational | The database is being deleted                                                            |
| 2204     | Informational | The database has been deleted                                                            |
| 2205     | Informational | Database upgrade check is in progress                                                    |
| 2206     | Informational | Database upgrade has been completed                                                      |
| 2207     | Informational | Database upgrade is not required                                                         |
| 2300     | Informational | The master key has been exported                                                         |
| 3000     | Audit Success | A user has been authenticated                                                            |
| 3001     | Audit Success | Access to the computer's current local admin password has been granted                   |
| 3002     | Audit Success | Access to the computer's password history has been granted                               |
| 3003     | Audit Success | JIT access to a computer has been granted                                                |
| 3004     | Audit Success | BitLocker access to a computer has been granted                                          |
| 3005     | Audit Success | JIT access to a role has been granted                                                    |
| 4000     | Errors        | SSO identity not found                                                                   |
| 4001     | Errors        | Computer not found in directory                                                          |
| 4002     | Errors        | LAPS password not present                                                                |
| 4003     | Errors        | Computer name is ambiguous                                                               |
| 4004     | Errors        | A user request reason was required but it was not provided                               |
| 4006     | Errors        | User certificate identity not found                                                      |
| 4008     | Errors        | User certificate validation error                                                        |
| 4009     | Errors        | Identity discovery error                                                                 |
| 4010     | Errors        | Computer discovery error                                                                 |
| 4011     | Errors        | No LAPS password history is available                                                    |
| 4012     | Errors        | Authorization failed because there were no rules that matched for the specific user      |
| 4013     | Errors        | Authorization failed because there were no rules that matched for the requested computer |
| 4014     | Errors        | Authorization failed                                                                     |
| 4015     | Errors        | Authorization was explicitly denied                                                      |
| 4016     | Errors        | Authorization failed because a mandatory audit event failed to be delivered              |
| 4017     | Errors        | The IP-based rate limit was exceeded                                                     |
| 4018     | Errors        | The user-based rate limit was exceeded                                                   |
| 4019     | Errors        | BitLocker keys were not present for the specified computer                               |
| 4020     | Errors        | Authorization failed because the rate limit was exceeded                                 |
| 4021     | Errors        | The search request returned too many results                                             |
| 5001     | Errors        | Failed to add a user to a local SAM group                                                |
| 5002     | Errors        | Failed to remove a user from a local SAM group                                           |
| 5003     | Errors        | Invalid certificate - invalid or unsupported URI scheme                                  |
| 5004     | Errors        | Unexpected error                                                                         |
| 5005     | Errors        | Error loading template resource                                                          |
| 5006     | Errors        | Notification channel delivery error                                                      |
| 5007     | Errors        | Unhandled error in background task                                                       |
| 5008     | Errors        | Error processing an authorization rule                                                   |
| 5009     | Errors        | JIT rollback is in progress                                                              |
| 5010     | Errors        | JIT rollback failed                                                                      |
| 5011     | Errors        | JIT error                                                                                |
| 5012     | Errors        | An error occured in the pre-authorization process                                        |
| 5013     | Errors        | LAPS password history error                                                              |
| 5014     | Errors        | LAPS password error                                                                      |
| 5015     | Errors        | Authorization error                                                                      |
| 5016     | Errors        | Application is not configured                                                            |
| 5017     | Errors        | Certificate trust chain parsing issue                                                    |
| 5018     | Errors        | Error looking up target directory                                                        |
| 5019     | Errors        | Error creating authorization context                                                     |
| 5020     | Errors        | Authorization context fallback                                                           |
| 5021     | Errors        | Authorization context server cannot connect                                              |
| 5022     | Errors        | Invalid response from PowerShell security descriptor generator                           |
| 5023     | Errors        | DN parse error                                                                           |
| 5024     | Errors        | Unexpected error in JIT worker                                                           |
| 5025     | Errors        | Failed to create JIT worker group                                                        |
| 5026     | Errors        | Failed to delete JIT worker group                                                        |
| 5027     | Errors        | JIT worker USN fallback                                                                  |
| 5028     | Errors        | JIT dynamic group has invalid domain                                                     |
| 5029     | Errors        | External authentication provider error                                                   |
| 5030     | Errors        | Error processing authentication provider response                                        |
| 5031     | Errors        | Error looking up authentication directory                                                |
| 5032     | Errors        | Access denied by external authentication provider                                        |
| 5033     | Errors        | Certificate authentication access denied                                                 |
| 5034     | Errors        | Certificate authentication error                                                         |
| 5035     | Errors        | BitLocker key access error                                                               |
| 5036     | Errors        | Error reading resource                                                                   |
| 5037     | Errors        | Error importing certificate                                                              |
| 5038     | Errors        | Error exporting certificate                                                              |
| 5039     | Errors        | The certificate could not be synchronized because the private key was not exportable     |
| 5040     | Errors        | Database upgrade error                                                                   |
| 5041     | Errors        | Database upgrade warning                                                                 |
| 5042     | Errors        | Database upgrade info                                                                    |
| 5048     | Errors        | Failed to check for new version                                                          |
| 5049     | Errors        | Failed to check certificate expiry                                                       |
| 5050     | Errors        | API is not enabled                                                                       |
| 5051     | Errors        | Database backup job failed                                                               |
| 5052     | Errors        | Database initialization failed                                                           |
| 5053     | Errors        | The scheduler failed to remove JIT membership                                            |
| 5054     | Errors        | The scheduler abandoned the membership removal job                                       |
| 5055     | Errors        | Password retrieval restricted by license                                                 |
| 5056     | Errors        | Database maintenance job failed                                                          |
| 5057     | Errors        | JIT worker job failed                                                                    |
| 5058     | Errors        | Certificate authentication failed because no certificate was presented                   |

## Agent

| Event ID | Description                                                                                                              |
| -------- | ------------------------------------------------------------------------------------------------------------------------ |
| 1000     | The agent has started                                                                                                    |
| 1001     | The agent has been disabled                                                                                              |
| 1002     | The LAPS agent is currently disabled                                                                                     |
| 1020     | The LAPS agent has been enabled                                                                                          |
| 1004     | The LAPS agent cannot run because it is running on a domain controller                                                   |
| 1006     | An unexpected exception occurred in the LAPS process                                                                     |
| 1007     | An unexpected exception occurred in the agent                                                                            |
| 1008     | The LAPS agent is not configured                                                                                         |
| 1009     | There was a conflict between the Access Manager Agent and the Windows LAPS agent. Only one may be active at any one time |
| 1010     | The password has expired                                                                                                 |
| 1011     | Password has been set on the LAPS attribute                                                                              |
| 1012     | Password has been set on the Access Manager attribute                                                                    |
| 1013     | Password has been changed                                                                                                |
| 1014     | Failure in password expiry check                                                                                         |
| 1015     | Failure in password change                                                                                               |
| 1017     | LAPS conflict has been resolved                                                                                          |
| 1018     | No password change required                                                                                              |
| 1019     | UWF (Unified Write Filter) has been enabled                                                                              |
| 2001     | Error in server connection                                                                                               |
| 2002     | Server credentials are not recognized                                                                                    |
| 2003     | No server is configured                                                                                                  |
| 2004     | AADR (Azure Active Directory Registration) registration is not allowed                                                   |
| 2005     | AMS registration has been rejected                                                                                       |
| 2006     | AMS registration information is missing                                                                                  |
| 2007     | AD certificate private key is not available                                                                              |
| 2008     | Impersonation failure                                                                                                    |
| 2009     | AMS registration failed due to an invalid registration key                                                               |
| 2010     | Failed to enable the account                                                                                             |
| 2011     | Failed to reset the agent                                                                                                |
| 2012     | Server certificate has expired                                                                                           |
| 2013     | Server certificate hostname mismatch                                                                                     |
| 2014     | Server certificate validation failed                                                                                     |
| 3001     | Registration is not ready                                                                                                |
| 3002     | No suitable AAD (Azure Active Directory) tenant found                                                                    |
| 4001     | AMS registration is pending                                                                                              |
| 4002     | AMS registration has been approved                                                                                       |
| 4003     | AMS registration is starting                                                                                             |
| 4004     | Secondary credentials have been registered                                                                               |
| 4005     | Agent reset has been completed                                                                                           |


# Group policy configuration

{% hint style="info" %}
The Access Manager v3 agent no longer gets its password settings from group policy. V3 agents obtain their password settings from the AMS server via [agent policy](/ams/help-and-support/advanced-help-topics/setting-up-agent-policies)
{% endhint %}

If your agents are joined to an Active Directory domain, you can use Group Policy to configure the agent.

When you install the Access Manager Agent on a computer, the group policy ADMX files get automatically installed. However, if you are using a central policy store, you'll need to manually copy the ADMX and ADML files to the store.

The following files need to be copied

* `C:\Windows\PolicyDefinitions\lithnet.admx`
* `C:\Windows\PolicyDefinitions\lithnet.accessmanager.agent.admx`
* `C:\Windows\PolicyDefinitions\lithnet.accessmanager.agent.password.admx`
* `C:\Windows\PolicyDefinitions\en-US\lithnet.adml`
* `C:\Windows\PolicyDefinitions\en-US\lithnet.accessmanager.agent.adml`
* `C:\Windows\PolicyDefinitions\en-US\lithnet.accessmanager.agent.password.adml`

The central policy store is located at `\\<domain>\sysvol\<domain>\Policies\PolicyDefinitions`

Using the group policy editor, create a new group policy object, and link it to the OU containing your computer objects. Open the policy and navigate to `Administrative Templates`, `Lithnet`, `Access Manager Agent`.

![](https://3858442128-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1NRJ1mSUxsI5xgqtLGt%2Fuploads%2Fgit-blob-8285e0e3a8fad2c2fbbbe5850aef306a1c4f1305%2Fgroup-policy-agent.png?alt=media)

Edit the `Enable the Lithnet Access Manager Agent` policy, and specify the server name. Note that the Agent check interval only applies to the v2 agent. The v3 agent's check in interval is configured in its agent policy defined on the AMS server.

### v2 Agent settings

The settings contained under `Administrator password management (Legacy v2.0 agent)` are not used at all by the v3 agent, and are provided for backwards compatibility with the v2 agent. The v3 agent does not store it's passwords in Active Directory and gets it agent policy from the AMS server directly.

For information on configuring these settings for the v2 agent, please see the [v2 agent documentation](https://docs.lithnet.io/ams/v2.0/configuration/deploying-features/setting-up-lithnet-laps/setting-up-lithnet-laps-for-active-directory#step-5-configure-the-access-manager-agent-group-policy).


# Agent command line reference

This document provides a comprehensive reference to the command line interface (CLI) for the Lithnet Access Manager Agent. The agent supports different commands based on the operating system platform (Windows, macOS, or Linux).

{% hint style="info" %}
These command line options are available in agent versions 3.0.1500 and later. For agent versions less than 3.0.1500, please refer to the [legacy command line reference](/ams/help-and-support/advanced-help-topics/agent-command-line-legacy)
{% endhint %}

## Global Options

These options apply to all platforms:

| Option      | Description                            |
| ----------- | -------------------------------------- |
| `--help`    | Shows help information for the command |
| `--version` | Shows version information              |

## Core Commands

### Service Management

Control the Access Manager Agent service:

```
Lithnet.AccessManager.Agent service <command>
```

Available commands:

| Command   | Description                              |
| --------- | ---------------------------------------- |
| `start`   | Start the Access Manager Agent service   |
| `stop`    | Stop the Access Manager Agent service    |
| `restart` | Restart the Access Manager Agent service |

**Examples:**

```
Lithnet.AccessManager.Agent service start
Lithnet.AccessManager.Agent service stop
Lithnet.AccessManager.Agent service restart
```

### Agent Management

Control the agent state:

```
Lithnet.AccessManager.Agent agent <command>
```

Available commands:

| Command   | Description                                                                         |
| --------- | ----------------------------------------------------------------------------------- |
| `enable`  | Enable the agent                                                                    |
| `disable` | Disable the agent (sets the agent to a disabled state that persists across reboots) |

**Examples:**

```
Lithnet.AccessManager.Agent agent enable
Lithnet.AccessManager.Agent agent disable
```

### Configuration

Configure the agent:

```
Lithnet.AccessManager.Agent config [options]
```

Available options:

| Option                       | Description                                                     |
| ---------------------------- | --------------------------------------------------------------- |
| `--server <server>`          | Set the hostname of the AMS server                              |
| `--port <port>`              | Set the HTTPS port for the AMS server (default is 443)          |
| `--registration-mode <mode>` | Set the registration mode (`iwa`, `key`, or `entra` on Windows) |
| `--registration-key <key>`   | Set the registration key (automatically sets mode to `key`)     |

**Examples:**

```
Lithnet.AccessManager.Agent config --server ams.example.com --port 443
Lithnet.AccessManager.Agent config --registration-mode iwa
Lithnet.AccessManager.Agent config --registration-mode key --registration-key YOUR-KEY
```

> **Note:** The `entra` registration mode is only available on Windows platforms. Setting a `--registration-key` automatically sets the registration mode to `key`.

### Setup Command

Interactive setup wizard to configure the agent:

```
Lithnet.AccessManager.Agent setup
```

This command will:

1. Prompt for server address
2. Prompt for registration mode
3. Collect additional information based on the selected mode
4. Apply the configuration and restart the service

### Reset Command

Reset the agent configuration:

```
Lithnet.AccessManager.Agent reset [options]
```

Available options:

| Option        | Description                                      |
| ------------- | ------------------------------------------------ |
| `--force`     | Skip confirmation prompt                         |
| `--keep-cert` | Keep the authentication certificate during reset |

**Examples:**

```
Lithnet.AccessManager.Agent reset
Lithnet.AccessManager.Agent reset --force
Lithnet.AccessManager.Agent reset --keep-cert
```

### Show Command

Display agent information:

```
Lithnet.AccessManager.Agent show <command>
```

Available commands:

| Command  | Description                                |
| -------- | ------------------------------------------ |
| `config` | Display the current configuration settings |
| `state`  | Display current agent state information    |

**Examples:**

```
Lithnet.AccessManager.Agent show config
Lithnet.AccessManager.Agent show state
```

## Platform-Specific Commands

### Linux Only

| Command           | Description                                                                                                              |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `service install` | Install the agent as a service (Linux only, non-packaged installs only, not required for DEB or RPM-based installations) |

**Example:**

```
Lithnet.AccessManager.Agent service install
```

### macOS Only

#### Secure Token Support

Manage secure token support for macOS:

```
Lithnet.AccessManager.Agent secure-token-support <command> [options]
```

Available commands:

| Command | Description                                                           |
| ------- | --------------------------------------------------------------------- |
| `set`   | Set initial credentials for a managed admin account with secure token |
| `get`   | Show information about accounts configured for secure token support   |
| `clear` | Clear stored credentials for secure token support                     |

Options for the `set` command:

| Option                  | Description                                                    |
| ----------------------- | -------------------------------------------------------------- |
| `--username <username>` | The username of the account (required)                         |
| `--password <password>` | The password of the account (if omitted, you will be prompted) |

Options for the `clear` command:

| Option                  | Description                                                          |
| ----------------------- | -------------------------------------------------------------------- |
| `--username <username>` | The specific account to clear (if omitted, all accounts are cleared) |

**Examples:**

```
Lithnet.AccessManager.Agent secure-token-support set --username adminuser --password YOUR-PASSWORD
Lithnet.AccessManager.Agent secure-token-support set --username adminuser
Lithnet.AccessManager.Agent secure-token-support get
Lithnet.AccessManager.Agent secure-token-support clear
Lithnet.AccessManager.Agent secure-token-support clear --username adminuser
```

## Registration Modes

The agent supports different registration modes depending on the platform:

| Mode    | Description                                                                   | Platforms    |
| ------- | ----------------------------------------------------------------------------- | ------------ |
| `iwa`   | Active Directory authentication (Integrated Windows Authentication/Negotiate) | All          |
| `key`   | AMS registration key authentication                                           | All          |
| `entra` | Microsoft Entra ID (formerly Azure AD) authentication                         | Windows only |

> **Note:** When using the `key` mode, you must also provide a registration key. Setting `--registration-key` automatically sets the registration mode to `key`.

## Administration Requirements

Many commands require administrator rights:

* Windows: Run Command Prompt or PowerShell as Administrator
* macOS/Linux: Use sudo or run as root

## Examples of Common Workflows

### Initial Setup

```
Lithnet.AccessManager.Agent setup
```

### Changing Server Configuration

```
Lithnet.AccessManager.Agent config --server new-server.example.com --port 8443
```

### Resetting the Agent

```
Lithnet.AccessManager.Agent reset --force
```

### Viewing Current Configuration

```
Lithnet.AccessManager.Agent show config
```

### Setting Up macOS Secure Token Support

```
Lithnet.AccessManager.Agent secure-token-support set --username adminuser
```

## Troubleshooting

If you encounter issues:

1. Ensure you're running with administrator rights
2. Check the agent logs
3. Try using the `show state` command to verify current agent state
4. Try resetting the agent with `reset --force`

For additional help, consult the full Lithnet Access Manager documentation.


# Agent command line reference (legacy)

This document provides a reference for command line options for the Lithnet Access Manager Agent versions prior to 3.0.1500.

{% hint style="info" %}
This documentation applies to agent versions less than 3.0.1500. For agent versions 3.0.1500 and later, please refer to the [updated command line reference](/ams/help-and-support/advanced-help-topics/agent-command-line) which uses a new structured command format.
{% endhint %}

## Global Options

These options apply to all platforms:

| Option      | Description                            |
| ----------- | -------------------------------------- |
| `--help`    | Shows help information for the command |
| `--version` | Shows version information              |

## Interactive Setup

```
Lithnet.AccessManager.Agent --setup
```

Perform setup using interactive setup wizard. This command will:

1. Prompt for server address
2. Prompt for registration mode
3. Collect additional information based on the selected mode
4. Apply the configuration and restart the service

## Non-Interactive Setup

### Active Directory (Negotiate) Authentication

```
Lithnet.AccessManager.Agent --server <servername> --registration-mode iwa
```

Perform setup without user interaction, using Active Directory (Negotiate) authentication.

| Option                    | Description                                        |
| ------------------------- | -------------------------------------------------- |
| `--server <servername>`   | Set the hostname of the AMS server                 |
| `--registration-mode iwa` | Use Negotiate authentication to register the agent |

### Microsoft Entra Authentication (Windows Only)

```
Lithnet.AccessManager.Agent --server <servername> --registration-mode entra
```

Perform setup without user interaction, using Microsoft Entra as the authentication provider.

| Option                      | Description                                              |
| --------------------------- | -------------------------------------------------------- |
| `--server <servername>`     | Set the hostname of the AMS server                       |
| `--registration-mode entra` | Use Microsoft Entra authentication to register the agent |

> **Note:** The `entra` registration mode is only available on Windows platforms.

### Registration Key Authentication

```
Lithnet.AccessManager.Agent --server <servername> --registration-mode key --registration-key <key>
```

Perform setup without user interaction, using a registration key for authentication.

| Option                     | Description                        |
| -------------------------- | ---------------------------------- |
| `--server <servername>`    | Set the hostname of the AMS server |
| `--registration-mode key`  | Use a key to register the agent    |
| `--registration-key <key>` | Set the registration key           |

## Agent State Control

Control the agent state:

```
Lithnet.AccessManager.Agent --disable
Lithnet.AccessManager.Agent --enable
```

| Option      | Description       |
| ----------- | ----------------- |
| `--disable` | Disable the agent |
| `--enable`  | Enable the agent  |

## Agent Reset

Reset the agent. This deletes all settings and authentication certificates:

```
Lithnet.AccessManager.Agent --reset
Lithnet.AccessManager.Agent --reset --force
Lithnet.AccessManager.Agent --reset --keep-cert
```

| Option                | Description                                            |
| --------------------- | ------------------------------------------------------ |
| `--reset`             | Reset the agent                                        |
| `--reset --force`     | Reset the agent without prompting for confirmation     |
| `--reset --keep-cert` | Reset the agent but keeps the agent's auth certificate |

## Administration Requirements

Many commands require administrator rights:

* Windows: Run Command Prompt or PowerShell as Administrator
* macOS/Linux: Use sudo or run as root

## Examples of Common Workflows

### Initial Setup with Active Directory

```
Lithnet.AccessManager.Agent --server ams.example.com --registration-mode iwa
```

### Initial Setup with Registration Key

```
Lithnet.AccessManager.Agent --server ams.example.com --registration-mode key --registration-key YOUR-KEY-HERE
```

### Disable Agent

```
Lithnet.AccessManager.Agent --disable
```

### Reset Agent

```
Lithnet.AccessManager.Agent --reset --force
```

## Troubleshooting

If you encounter issues:

1. Ensure you're running with administrator rights
2. Check the agent logs
3. For agent versions 3.0.1500 and later, refer to the [updated command line reference](/ams/help-and-support/advanced-help-topics/agent-command-line)
4. Try resetting the agent with `--reset --force`

For additional help, consult the full Lithnet Access Manager documentation.


# Enabling secure token support on macOS

This document explains how to configure Lithnet Access Manager to work with macOS accounts that have secure token enabled.

{% hint style="info" %}
Secure token support requires Access Manager Agent version 3.0.1500 or later. Older agent versions will detect secure token and report an error that they are unable to change the password.
{% endhint %}

## Overview of Secure Token

Secure token is a macOS security feature introduced in macOS High Sierra (10.13). It is an encryption key protected by the user's password that allows them access to perform security-sensitive operations such as enabling FileVault, approving operating system updates and system and kernel extensions.

As this encryption key is protected by the user's password, this fundamentally changes how password management works for the account.

The most important difference is that **passwords cannot be reset directly** when secure token is enabled - they can only be **changed** using the current password. This means that any password modification requires knowledge of the existing password first, unlike accounts without secure token where passwords can be reset directly without knowing the current password.

On every Mac system, the first user account created automatically receives secure token. Additional users can only be granted secure token by an existing user who already has it, or through certain Mobile Device Management (MDM) solutions that have been configured with the appropriate privileges. This makes secure token a controlled privilege that must be explicitly granted.

You can verify if an account has secure token enabled using the native macOS command:

```bash
sudo sysadminctl -secureTokenStatus username
```

This will return either "ENABLED" or "DISABLED" for the specified user.

## Secure Token Handling in Access Manager

Secure token support was added to Access Manager in agent version 3.0.1500. Prior versions do not support secure token and will report an error when attempting to manage accounts that have it enabled. Agent version 3.0.1500 and later now support both secure token enabled and non-secure token accounts.

### Accounts Without Secure Token

For accounts without secure token enabled, Access Manager continues to operate exactly as it did in previous versions. It **resets** the password directly using the `dscl` command without requiring knowledge of the current password. This allows Access Manager to change the password immediately without any prior setup or configuration.

However, there is one important change in version 3.0.1500 and later: Access Manager now encrypts and stores the current password for all accounts after each password change. This means that if secure token is enabled for an account at a later date, Access Manager can immediately switch to changing the password instead of resetting it, without requiring any additional configuration.

### Accounts With Secure Token Enabled

For accounts with secure token enabled, Access Manager uses the new functionality added in version 3.0.1500 to handle macOS security restrictions. It **changes** the password using `dscl -passwd` which requires the current password to be provided. Access Manager leverages the encrypted copy of the current password that it stores locally after each password change. When secure token is detected, the agent automatically switches from password reset mode to password change mode. If secure token becomes disabled for an account, Access Manager will automatically fall back to password reset mode.

## How to Set Up Secure Token Support

### Enable Secure Token for Existing Access Manager Account

This process allows you to enable secure token for accounts already managed by Access Manager.

{% hint style="info" %}
Access Manager is unable to programmatically enable secure token, as only a user with a secure token can enable secure token for another user. You'll need to determine a way to enable secure token for the managed admin account using an external process such as an MDM tool or a script-based solution.
{% endhint %}

**Steps:**

1. **Deploy agent version 3.0.1500 or later** to the macOS computer
2. **Ensure the agent has an encrypted copy of the current password:**
   * Wait for the next password change interval based on your Access Manager policy, OR
   * Manually expire the passwords on the Access Manager server for the target computers to trigger an immediate password change
3. **Validate that Access Manager has the password stored:**

   ```bash
   sudo Lithnet.AccessManager.Agent secure-token-support get
   ```

   The account should appear in the list if the password is stored.
4. **After confirming that Access Manager has the current password stored**, enable secure token for the account. This operation must be performed by a user who already has secure token:

   ```bash
   sudo sysadminctl -secureTokenOn <accountName> -password <password> -adminUser <adminuser> -adminPassword <adminpassword>
   ```

   Replace `<accountName>` and `<password>` with the username and password of the Access Manager-managed admin account, and `<adminuser>` and `<adminpassword>` with the credentials of a user who has an existing secure token.

   For enhanced security, you can use `-` instead of providing passwords directly to be prompted for them:

   ```bash
   sudo sysadminctl -secureTokenOn <accountName> -password - -adminUser <adminuser> -adminPassword -
   ```
5. **Verify secure token is enabled:**

   ```bash
   sudo sysadminctl -secureTokenStatus username
   ```

**Note:** If you need to reset the account's password manually to use another method of enabling secure token with a known password, you can skip steps 2 and 3 above. Instead, run the `set` command after enabling secure token to provide Access Manager with the updated password:

```bash
sudo Lithnet.AccessManager.Agent secure-token-support set --username adminuser --password current-password
```

The agent will now automatically handle password changes for the secure token account using the stored encrypted password.

## Managing Secure Token Support

### Viewing Configured Accounts

To see which accounts are currently configured for secure token support:

```bash
sudo Lithnet.AccessManager.Agent secure-token-support get
```

### Clearing Stored Credentials

To remove secure token support for a specific account:

```bash
sudo Lithnet.AccessManager.Agent secure-token-support clear --username adminuser
```

To remove secure token support for all accounts:

```bash
sudo Lithnet.AccessManager.Agent secure-token-support clear
```

### Updating Stored Passwords

If the stored password becomes out of sync with the actual account password, you can update it:

```bash
sudo Lithnet.AccessManager.Agent secure-token-support set --username adminuser --password current-password
```

## Troubleshooting

### Password Out of Sync Error

**Problem:** Access Manager reports it cannot change the password for a secure token account.

**Cause:** The stored password is out of sync with the actual account password.

**Solution:**

1. Determine the current password for the account
2. Update the stored password using:

   ```bash
   sudo Lithnet.AccessManager.Agent secure-token-support set --username adminuser --password actual-current-password
   ```

### Agent Version Too Old

**Problem:** Error messages about being unable to change passwords for secure token accounts.

**Cause:** Agent version is older than 3.0.1500.

**Solution:** Upgrade the Access Manager Agent to version 3.0.1500 or later.


# TLS certificate automation

With the CA/Browser Forum announcing that the maximum lifetime of TLS certificates will be reduced to 47 days in 2029, automating the issuance and renewal of TLS certificates has become increasingly important. This guide provides an overview of options for automating TLS certificate management with Access Manager.

## Using Certify The Web

Certify The Web (CTW) is a popular ACME client for Windows that can automatically issue and renew certificates, then deploy them to Windows HTTP.SYS (the HTTPS stack used by Access Manager Server).

This example uses Let’s Encrypt as the default Certificate Authority (CA), but CTW supports others. See the [Certify getting started](https://docs.certifytheweb.com/docs/intro) and [requesting certificates](https://docs.certifytheweb.com/docs/certificate-process) guides for installation and configuration.

### Prerequisites

* Local administrator rights on the server
* The public DNS name(s) that users will browse to for Access Manager
* Outbound internet access from the server to your chosen CA (e.g., Let’s Encrypt)

### Step-by-step

1. Download and install Certify The Web on the Access Manager Server. Launch the app as an administrator.
2. Close the Access Manager Configuration app if it is open.
3. Click the **New Certificate** button.
4. In the **Identifiers** section, leave **Select site (optional)** set to **No Site Selected**. This setting applies only to IIS sites.
5. In **Add domains to certificate**, add the DNS name(s) used to access Access Manager (for example, ams.contoso.com). Click + to add each name.
6. Modify any other settings as needed in the **Advanced** tab, or leave defaults (e.g., certificate authority, account email).
7. In **Authorization**, configure the appropriate validation method:
   * HTTP-01 (requires port 80 reachable externally), or
   * DNS-01 via your DNS provider integration (required for wildcard names).
8. In **Deployment**, select **Certificate store Only** as the deployment mode.
9. In **Tasks**, add a new task of type **Update Port Binding**. On **Task Parameters**, use:
   * IP/Port: `0.0.0.0`
   * Port: `443`
   * AppId (GUID): `4C3E21BA-7BEF-46C8-BC85-A4407DB6F596`
10. Save the certificate configuration.
11. Click **Request Certificate** to perform the initial issuance and deployment.
12. Open the Access Manager Configuration app, navigate to the **Host configuration** page, and ensure the correct certificate is selected.
13. Browse to Access Manager over HTTPS to confirm the new certificate is in use.
14. CTW will now auto-renew and re-run the deployment tasks to keep the binding up to date.

## Manually using netsh

If you prefer not to use Certify The Web, or have another automation tool in use, you can update the TLS binding manually. Run the following commands from an elevated PowerShell or Command Prompt on the Access Manager Server.

1. Import the new certificate (with private key) into Local Computer > Personal (My) using the Certificates MMC or PowerShell. Note the certificate's SHA-1 thumbprint and remove any spaces.
2. Remove the existing HTTPS binding for port 443:

```powershell
netsh http delete sslcert ipport=0.0.0.0:443
```

3. Add the new binding, replacing YOURTHUMBPRINT with the certificate's SHA-1 thumbprint. The AppId and IP/Port must be exactly as shown for Access Manager Server to recognize the binding. Changing these values is not supported and will confuse the UI.

```powershell
netsh http add sslcert ipport=0.0.0.0:443 certhash=YOURTHUMBPRINT appid={4C3E21BA-7BEF-46C8-BC85-A4407DB6F596}
```

4. Verify the binding:

```powershell
netsh http show sslcert ipport=0.0.0.0:443
```

5. Test HTTPS access to Access Manager. Once confirmed, you may remove the old certificate from the certificate store if it is no longer needed.

Note: The AppId and binding of `0.0.0.0:443` are required by Access Manager Server. Do not change these values.


# PowerShell reference

## Description

The Lithnet Access Manager PowerShell module contains the following cmdlets to help you manage your AMS system.

## LithnetAccessManager Cmdlets

### [Add-AmsDeviceRegistrationKeyGroup](/ams/help-and-support/powershellmodule/add-amsdeviceregistrationkeygroup)

Adds an existing AMS group to a registration key

### [Add-AmsGroupMember](/ams/help-and-support/powershellmodule/add-amsgroupmember)

Adds a device to an AMS group

### [Export-AmsServerDiagnostics](/ams/help-and-support/powershellmodule/export-amsserverdiagnostics)

Exports server diagnostics for troubleshooting

### [Get-AmsActiveDirectoryJitOptions](/ams/help-and-support/powershellmodule/get-amsactivedirectoryjitoptions)

Gets configuration related to Access Manager's Active Directory JIT access engine

### [Get-AmsComputerAuthorizationRule](/ams/help-and-support/powershellmodule/get-amscomputerauthorizationrule)

Gets computer authorization rules

### [Get-AmsDevice](/ams/help-and-support/powershellmodule/get-amsdevice)

Gets AMS devices

### [Get-AmsDeviceRegistrationKey](/ams/help-and-support/powershellmodule/get-amsdeviceregistrationkey)

Gets device registration keys

### [Get-AmsGroup](/ams/help-and-support/powershellmodule/get-amsgroup)

Gets AMS groups

### [Get-AmsGroupMembers](/ams/help-and-support/powershellmodule/get-amsgroupmembers)

Gets the members of an AMS group

### [Get-AmsHostConfig](/ams/help-and-support/powershellmodule/get-amshostconfig)

Gets the configuration settings for the AMS host

### [Get-AmsJitSchedulerJob](/ams/help-and-support/powershellmodule/get-amsjitschedulerjob)

Gets jobs pending in the AMS JIT scheduler

### [Get-AmsLocalAdminPassword](/ams/help-and-support/powershellmodule/get-amslocaladminpassword)

Gets the local admin password of a computer

### [Get-AmsLocalAdminPasswordHistory](/ams/help-and-support/powershellmodule/get-amslocaladminpasswordhistory)

Gets the local admin password history for a computer

### [Get-AmsRoleAuthorizationRule](/ams/help-and-support/powershellmodule/get-amsroleauthorizationrule)

Gets role authorization rules

### [New-AmsComputerAuthorizationRule](/ams/help-and-support/powershellmodule/new-amscomputerauthorizationrule)

Creates a new computer authorization rule

### [New-AmsDeviceRegistrationKey](/ams/help-and-support/powershellmodule/new-amsdeviceregistrationkey)

Creates a new device registration key

### [New-AmsGroup](/ams/help-and-support/powershellmodule/new-amsgroup)

Creates a new AMS group

### [New-AmsRoleAuthorizationRule](/ams/help-and-support/powershellmodule/new-amsroleauthorizationrule)

Creates a new role authorization rule

### [Remove-AmsComputerAuthorizationRule](/ams/help-and-support/powershellmodule/remove-amscomputerauthorizationrule)

Removes a computer authorization rule

### [Remove-AmsDevice](/ams/help-and-support/powershellmodule/remove-amsdevice)

Removes a device

### [Remove-AmsDeviceRegistrationKey](/ams/help-and-support/powershellmodule/remove-amsdeviceregistrationkey)

Removes a device registration key

### [Remove-AmsDeviceRegistrationKeyGroup](/ams/help-and-support/powershellmodule/remove-amsdeviceregistrationkeygroup)

Removes a group association from a registration key

### [Remove-AmsGroup](/ams/help-and-support/powershellmodule/remove-amsgroup)

Removes an AMS group

### [Remove-AmsGroupMember](/ams/help-and-support/powershellmodule/remove-amsgroupmember)

Removes a member from an AMS group

### [Remove-AmsJitSchedulerJob](/ams/help-and-support/powershellmodule/remove-amsjitschedulerjob)

Removes a job from the AMS JIT scheduler

### [Remove-AmsRoleAuthorizationRule](/ams/help-and-support/powershellmodule/remove-amsroleauthorizationrule)

Removes a role authorization rule

### [Set-AmsActiveDirectoryJitOptions](/ams/help-and-support/powershellmodule/set-amsactivedirectoryjitoptions)

Modifies configuration related to Access Manager's Active Directory JIT access engine

### [Set-AmsComputerAuthorizationRule](/ams/help-and-support/powershellmodule/set-amscomputerauthorizationrule)

Modifies a computer authorization rule

### [Set-AmsDevice](/ams/help-and-support/powershellmodule/set-amsdevice)

Modifies an AMS device

### [Set-AmsDeviceRegistrationKey](/ams/help-and-support/powershellmodule/set-amsdeviceregistrationkey)

Modifies a device registration key

### [Set-AmsGroup](/ams/help-and-support/powershellmodule/set-amsgroup)

Modifies an AMS group

### [Set-AmsHostConfig](/ams/help-and-support/powershellmodule/set-amshostconfig)

Sets configuration settings for the AMS host

### [Set-AmsRoleAuthorizationRule](/ams/help-and-support/powershellmodule/set-amsroleauthorizationrule)

Modifies a role authorization rule


# Add-AmsDeviceRegistrationKeyGroup

## SYNOPSIS

Adds an AMS group to an existing registration key

## SYNTAX

```
Add-AmsDeviceRegistrationKeyGroup -Id <String> -Groups <Object[]> [<CommonParameters>]
```

## DESCRIPTION

A registration key can be associated with one or more AMS groups. When a device uses this key to register, it will automatically be added to the associated groups. This cmdlet allows you to add an AMS group to an existing registration key.

## EXAMPLES

### Example 1

```powershell
PS C:\> Get-AmsDeviceRegistrationKey -Name 'my example key' | Add-AmsDeviceRegistrationKeyGroup -Groups '6efbd76f-befb-44df-9df7-80ef5660df5d'
```

## PARAMETERS

### -Groups

A collection of groups to add. This can be a group ID string, or a group object obtained from the \`Get-AmsGroup\` cmdlet

```yaml
Type: Object[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

The ID of the registration key

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Void

## NOTES

Use of this cmdlet requires an Enterprise Edition license.

## RELATED LINKS


# Add-AmsGroupMember

## SYNOPSIS

Adds a member to an AMS group

## SYNTAX

```
Add-AmsGroupMember -Id <String> -Devices <Object[]> [<CommonParameters>]
```

## DESCRIPTION

This cmdlet adds an AMS device to an AMS group

## EXAMPLES

### Example 1

```powershell
PS C:\> Get-AmsGroup -Name 'My group' | Add-AmsGroupMember -Devices (Get-AmsDevice -Name 'PC1')
```

This example gets the AMS group named \`My group\` and pipes it through to the \`Add-AmsGroupMember\` cmdlet which gets the device named \`PC1\` to add to the group

## PARAMETERS

### -Devices

A list of device IDs, or device objects, obtained from the \`Get-AmsDevice\` cmdlet.

```yaml
Type: Object[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

The ID of the group

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Void

## NOTES

Use of this cmdlet requires an Enterprise Edition license.

## RELATED LINKS


# Add-AmsIdpClaimMapping

## SYNOPSIS

Adds a claim mapping for an identity provider

## SYNTAX

```
Add-AmsIdpClaimMapping -IdpType <AuthenticationMode> -ClaimName <String> -ClaimValueType <ClaimValueType>
 [-DirectoryAttributeName <String>] [<CommonParameters>]
```

## DESCRIPTION

Claim mappings are used to map claims provided by an identity provider to directory attributes in the Active Directory, so that users can be identified and authenticated by the system.

By default, Access Manager automatically maps the 'upn', 'sid' and 'onprem\_sid' claims to their respective AD attributes. If you need to provide alternative mappings, you can use this cmdlet to add them.

Note, that adding a claim mapping overrides the default mappings.

Claim mappings are only supported for OpenID Connect and WS-Federation identity providers.

## EXAMPLES

### Example 1

```powershell
PS C:\> Add-AmsIdpClaimMapping -IdpType oidc -ClaimName 'alt_upn' -ClaimValueType Upn
```

This example adds a claim mapping for the 'alt\_upn' claim, which is a UPN claim, for an OpenID Connect identity provider

### Example 2

```powershell
PS C:\> Add-AmsIdpClaimMapping -IdpType oidc -ClaimName 'email' -ClaimValueType Custom -DirectoryAttributeName 'mail'
```

This example adds a claim mapping for the 'email' claim, which is a custom claim, for an OpenID Connect identity provider. The claim value will be matched against the 'mail' attribute in the directory

### Example 3

```powershell
PS C:\> Add-AmsIdpClaimMapping -IdpType wsfed -ClaimName 'login_name' -ClaimValueType Upn
```

This example adds a claim mapping for the 'login\_name' claim, which is a UPN claim, for a WS-Federation identity provider

## PARAMETERS

### -ClaimName

The name of the claim provided by the identity provider

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ClaimValueType

The type of data contained within the claim. This can be 'Upn', 'SamAccountName', 'Sid' or 'Custom'. Custom is used to match the claim value against a specific directory attribute

```yaml
Type: ClaimValueType
Parameter Sets: (All)
Aliases:
Accepted values: Upn, SamAccountName, Sid, Custom

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DirectoryAttributeName

The name of the custom directory attribute used to match on the provided claim value. Used only when ClaimValueType is set to 'custom'

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IdpType

The type of identity provider that this claim mapping applies to. Value can be 'oidc' or 'wsfed'

```yaml
Type: AuthenticationMode
Parameter Sets: (All)
Aliases:
Accepted values: wsfed, oidc

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### Lithnet.AccessManager.PowerShell.ClaimMappingPSObject

## NOTES

## RELATED LINKS


# Clear-AmsIdpClaimMapping

## SYNOPSIS

Removes all claim mappings for an identity provider

## SYNTAX

```
Clear-AmsIdpClaimMapping -IdpType <AuthenticationMode> [<CommonParameters>]
```

## DESCRIPTION

Claim mappings are used to map claims provided by an identity provider to directory attributes in the Active Directory, so that users can be identified and authenticated by the system.

By default, Access Manager automatically maps the 'upn', 'sid' and 'onprem\_sid' claims to their respective AD attributes.

This cmdlet removes all custom claim mappings for the specified identity provider. Returning to the default claim mappings.

## EXAMPLES

### Example 1

```powershell
PS C:\> Clear-AmsIdpClaimMapping -IdpType oidc
```

This example removes all claim mappings for an OpenID Connect identity provider

### Example 2

```powershell
PS C:\> Clear-AmsIdpClaimMapping -IdpType wsfed
```

This example removes all claim mappings for a WS-Federation identity provider

## PARAMETERS

### -IdpType

The type of identity provider that this claim mapping applies to. Value can be 'oidc' or 'wsfed'

```yaml
Type: AuthenticationMode
Parameter Sets: (All)
Aliases:
Accepted values: wsfed, oidc

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS


# Export-AmsServerDiagnostics

## SYNOPSIS

This cmdlet is used to export diagnostic information that may be requested by Lithnet support

## SYNTAX

```
Export-AmsServerDiagnostics -File <String> [-Force] [<CommonParameters>]
```

## DESCRIPTION

## EXAMPLES

### Example 1

```powershell
PS C:\> Export-AmsServerDiagnostics -File c:\diagnostics.zip
```

This example exports the diagnostics to a file called \`c:\diagnostics.zip\`

## PARAMETERS

### -File

The name and path of the export ZIP file to create

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -Force

Overwrites any existing output file without prompting for confirmation

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Void

## NOTES

## RELATED LINKS


# Get-AmsActiveDirectoryJitOptions

## SYNOPSIS

Gets the current Active Directory JIT configuration

## SYNTAX

```
Get-AmsActiveDirectoryJitOptions [<CommonParameters>]
```

## DESCRIPTION

This cmdlet gets the current configuration of the Active Directory JIT service

## EXAMPLES

### Example 1

```powershell
PS C:\> Get-AmsActiveDirectoryJitOptions
```

This example gets the current configuration of the Active Directory JIT service

## PARAMETERS

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### Lithnet.AccessManager.PowerShell.JitConfigurationOptionsPSObject

## NOTES

## RELATED LINKS


# Get-AmsActiveDirectoryJitGroupCreationRule

## SYNOPSIS

The cmdlet retrieves just-in-time Active Directory group creation rules

## SYNTAX

### NoParameters (Default)

```
Get-AmsActiveDirectoryJitGroupCreationRule [<CommonParameters>]
```

### GetById

```
Get-AmsActiveDirectoryJitGroupCreationRule [-Id <String>] [<CommonParameters>]
```

## DESCRIPTION

Use this cmdlet to retrieve the list of just-in-time Active Directory group creation rules, or a specific rule by its unique ID

## EXAMPLES

### Example 1

```
PS C:\>	Get-AmsActiveDirectoryJitGroupCreationRule
```

Using the cmdlet without any parameters will return all the JIT group creation rules

### Example 2

```
PS C:\>	Get-AmsActiveDirectoryJitGroupCreationRule -Id "12345678-1234-1234-1234-123456789012"
```

Using the cmdlet with the -Id parameter will return the JIT group creation rule with the specified ID

## PARAMETERS

### -Id

The unique ID of the rule

```yaml
Type: String
Parameter Sets: GetById
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### Lithnet.AccessManager.PowerShell.AdJitCreationRulePSObject

## NOTES

## RELATED LINKS




---

[Next Page](https://docs.lithnet.io/llms-full.txt/1)

