Skip to content

A simple and fast GUI for Microsoft LAPS (legacy) and Windows LAPS. With this tool you can query passwords and change the expiration timestamp.

License

Notifications You must be signed in to change notification settings

htcfreek/SimpleLapsGui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple LAPS GUI

A simple and fast GUI for Microsoft LAPS (legacy) and Windows LAPS. With this tool you can query passwords and change the expiration timestamp.

Hero image for Simple LAPS GUI

Features

  • Simple and fast: Run the PowerShell script or Batch file, type the computer name and press the ENTER key.
  • Supports Microsoft LAPS (legacy) and Windows LAPS on Active Directory environments.
  • Query the user name, password and password expiration timestamp of the LAPS account.
  • Query the account history of computer objects in your local Active Directory (Windows LAPS only).
  • Multi-domain support.
  • Copy user names and passwords to the clipboard.
  • Zoom view for user name and password.
  • Change the expiration timestamp.
  • Close the window by pressing the ESCAPE key.

Download and Usage

  1. Download the archive from here.
  2. Extract the downloaded archive to your preferred place.
  3. Run the tool using the Batch file or the PowerShell script.

Tip

Using a shortcut with the SimpleLapsGui.ico from the downloaded zip file shows the correct window icon on your task bar.

System requirements

  • PowerShell 5.1
  • Windows LAPS PowerShell module
  • Active Directory Domain joined machine and user account
  • Optional for changing the timestamp of Microsoft LAPS (legacy) passwords: Microsoft LAPS PowerShell module (AdmPwd module)

Permissions

The user account who uses the tool needs the following permissions:

  • Read LAPS password attribute(s).
  • Decrypt the Windows LAPS password.
  • [Optional:] Change expiration time attribute.

Caution

As always when granting permissions, you should be careful who you grant them to. You should grant permissions only to those who need them (e.g., use administration tiering).

Limitations

  • Microsoft Entra ID (Azure AD) is not supported.
  • Changing the expiration time of clients that use Microsoft LAPS (legacy) is not supported when searching in multi-domain mode.

FAQ

Why did you create another LAPS (G)UI?

  1. The existing standalone LAPS UI doesn't support Windows LAPS and the Windows LAPS password history.
  2. There is a built-in Windows LAPS tab in the RSAT (Active Directory Users and Computers). But to use this you have to install the RSAT for everyone who should use it. My GUI is small and portable.
  3. The LAPS tab in the RSAT (Active Directory Users and Computers) doesn't show the Windows LAPS password history.
  4. When using my GUI you don't have to learn the PowerShell modules.

Does the script version contains viruses? It is reported on "virustotal.com".

No it doesn't. Unfortunately some scanners are triggered by PowerShell scripts in a zip file. (Feel free to report the download / script as false positive to the manufacturer of your scanner.)

Why is there a copilopt-workspace directory? Have you used AI like copilot?

This folder conatins a configuration file that disallows GitHub Copilot to create Issue comments and Pull Requests.

Note

This tool is developed by me and not by any AI. There was no AI used to create code that is written in this script.

Can you support Windows Server 2016?

No. As long as Microsoft doesn't provide the PowerShell cmdlets on Server 2016, I can't support this OS.

Warning

You can find instructions on how to change my script to run on Windows Server 2016. But this is not supported by me. All manipulations of the script happens at your own risk!!!

Why don't you allow side-loading the LAPS module?

I know that such a feature would make my script usable on Windows Server 2016. But loading PowerShell modules from unknown locations is a potential security risk. And it requires to lower the execution policy level which is a security risk too.

What notations are supported for the computer name?

The following computer name notations are supported:

  • Sam Account Name (begins with a '$")
  • Name (for all other inputs)
  • DNS Hostname (contains at least one '.' character)
  • <Domain>\<Computer name>

How to query an other domain than my computer/user is joined to?

To do this please use one of the following computer name notations:

  • DNS Hostname (contains at least one '.' character)
  • <Domain>\<Computer name>

Why are no passwords found?

Either you don't have the permission to read them or there are no passwords stored for this computer.

Why do some computers have no history?

To have a history it must be enabled and the computer must use Windows LAPS.

Why is the password not decrypted?

This happens if you don't have the required permission to decrypt the password.

How to get the correct window icon shown on my task bar?

You have to create a shortcut to open the Simple Laps Gui and assign it the SimpleLapsGui.ico icon from the downloaded zip file.

Support and contributions

If you have any problems or want to suggest a new feature please fill an issue.

If you want to report a security vulnerability, please use the form on the SECURITY page.

Before contributing to this repository please read the contributing guidelines!

Credits

This repository includes scripts (and other files) that where created while my day to day job work. I want to say thank you to my employer who allows me to share them with you (the community).

Disclaimer

Product names and company names are trademarks (™) or registered (®) trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

License

This Repository is licensed to you under the MIT license.
See the LICENSE file in the project root for more information.

About

A simple and fast GUI for Microsoft LAPS (legacy) and Windows LAPS. With this tool you can query passwords and change the expiration timestamp.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks