Having implemented LAPS (Local Administrator Password Solution) on all of our PCs there became a need to access the password when in the field away from a PC with easy access to AD / the LAPS GUI.

As we use Slack for primary out-of-office communications, it made sense to create a Slack Slash Command to return the LAPS Password.

It is accessed by using  /password PCNAME  and returns the password to the user who requested it. PC Name isn’t returned so passwords cannot be easily matched with PC names.

The slash command uses PHP and its inbuilt LDAP module. Slash commands are configured from the Slash Command Configuration page.

Code below. It’s very simplistic but does the job.


Categories: ADLAPSSlack


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.