> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/ams/v2.1/help-and-support/powershellmodule.md).

# 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/v2.1/help-and-support/powershellmodule/add-amsdeviceregistrationkeygroup.md)

Adds an existing AMS group to a registration key

### [Add-AmsGroupMember](/ams/v2.1/help-and-support/powershellmodule/add-amsgroupmember.md)

Adds a device to an AMS group

### [Export-AmsServerDiagnostics](/ams/v2.1/help-and-support/powershellmodule/export-amsserverdiagnostics.md)

Exports server diagnostics for troubleshooting

### [Get-AmsActiveDirectoryJitOptions](/ams/v2.1/help-and-support/powershellmodule/get-amsactivedirectoryjitoptions.md)

Gets configuration related to Access Manager's Active Directory JIT access engine

### [Get-AmsComputerAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/get-amscomputerauthorizationrule.md)

Gets computer authorization rules

### [Get-AmsDevice](/ams/v2.1/help-and-support/powershellmodule/get-amsdevice.md)

Gets AMS devices

### [Get-AmsDeviceRegistrationKey](/ams/v2.1/help-and-support/powershellmodule/get-amsdeviceregistrationkey.md)

Gets device registration keys

### [Get-AmsGroup](/ams/v2.1/help-and-support/powershellmodule/get-amsgroup.md)

Gets AMS groups

### [Get-AmsGroupMembers](/ams/v2.1/help-and-support/powershellmodule/get-amsgroupmembers.md)

Gets the members of an AMS group

### [Get-AmsHostConfig](/ams/v2.1/help-and-support/powershellmodule/get-amshostconfig.md)

Gets the configuration settings for the AMS host

### [Get-AmsJitSchedulerJob](/ams/v2.1/help-and-support/powershellmodule/get-amsjitschedulerjob.md)

Gets jobs pending in the AMS JIT scheduler

### [Get-AmsLocalAdminPassword](/ams/v2.1/help-and-support/powershellmodule/get-amslocaladminpassword.md)

Gets the local admin password of a computer

### [Get-AmsLocalAdminPasswordHistory](/ams/v2.1/help-and-support/powershellmodule/get-amslocaladminpasswordhistory.md)

Gets the local admin password history for a computer

### [Get-AmsRoleAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/get-amsroleauthorizationrule.md)

Gets role authorization rules

### [New-AmsComputerAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/new-amscomputerauthorizationrule.md)

Creates a new computer authorization rule

### [New-AmsDeviceRegistrationKey](/ams/v2.1/help-and-support/powershellmodule/new-amsdeviceregistrationkey.md)

Creates a new device registration key

### [New-AmsGroup](/ams/v2.1/help-and-support/powershellmodule/new-amsgroup.md)

Creates a new AMS group

### [New-AmsRoleAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/new-amsroleauthorizationrule.md)

Creates a new role authorization rule

### [Remove-AmsComputerAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/remove-amscomputerauthorizationrule.md)

Removes a computer authorization rule

### [Remove-AmsDevice](/ams/v2.1/help-and-support/powershellmodule/remove-amsdevice.md)

Removes a device

### [Remove-AmsDeviceRegistrationKey](/ams/v2.1/help-and-support/powershellmodule/remove-amsdeviceregistrationkey.md)

Removes a device registration key

### [Remove-AmsDeviceRegistrationKeyGroup](/ams/v2.1/help-and-support/powershellmodule/remove-amsdeviceregistrationkeygroup.md)

Removes a group association from a registration key

### [Remove-AmsGroup](/ams/v2.1/help-and-support/powershellmodule/remove-amsgroup.md)

Removes an AMS group

### [Remove-AmsGroupMember](/ams/v2.1/help-and-support/powershellmodule/remove-amsgroupmember.md)

Removes a member from an AMS group

### [Remove-AmsJitSchedulerJob](/ams/v2.1/help-and-support/powershellmodule/remove-amsjitschedulerjob.md)

Removes a job from the AMS JIT scheduler

### [Remove-AmsRoleAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/remove-amsroleauthorizationrule.md)

Removes a role authorization rule

### [Set-AmsActiveDirectoryJitOptions](/ams/v2.1/help-and-support/powershellmodule/set-amsactivedirectoryjitoptions.md)

Modifies configuration related to Access Manager's Active Directory JIT access engine

### [Set-AmsComputerAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/set-amscomputerauthorizationrule.md)

Modifies a computer authorization rule

### [Set-AmsDevice](/ams/v2.1/help-and-support/powershellmodule/set-amsdevice.md)

Modifies an AMS device

### [Set-AmsDeviceRegistrationKey](/ams/v2.1/help-and-support/powershellmodule/set-amsdeviceregistrationkey.md)

Modifies a device registration key

### [Set-AmsGroup](/ams/v2.1/help-and-support/powershellmodule/set-amsgroup.md)

Modifies an AMS group

### [Set-AmsHostConfig](/ams/v2.1/help-and-support/powershellmodule/set-amshostconfig.md)

Sets configuration settings for the AMS host

### [Set-AmsRoleAuthorizationRule](/ams/v2.1/help-and-support/powershellmodule/set-amsroleauthorizationrule.md)

Modifies a role authorization rule


---

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

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

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

```
GET https://docs.lithnet.io/ams/v2.1/help-and-support/powershellmodule.md?ask=<question>&goal=<endgoal>
```

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

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

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