For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure LAPS with a custom credentials entry

The following guide describes how to add a PowerShell script in a custom credentials entry to connect on a remote machine using Windows LAPS. Windows LAPS is required and must be properly configured in your environment to use this solution.

1. In Remote Desktop Manager Windows, create a new entry in the ribbon under the Edit tab. 2. In Credential management, select the Custom entry type.

  1. Name your entry and select its destination folder.

  2. In the General tab, make sure the drop-down menu is set to PowerShell.

  3. Add the following PowerShell script in the Command box.

    The script uses the $HOST$ variable for the -ComputerName switch of the Get-LapsADPassword cmdlet and uses the $PARAMETER1$ variable for the username (see step 6 below). Depending on your environment, the $PARAMETER$ could be related to the -Identity. You can also configure the Parameter #2 to set the username you need and change the script value from %USERNAME% to $PARAMETER2$. We recommend to launch Remote Desktop Manager as an administrator to gain elevated permissions.

  1. In the Parameters tab, add the local administrator account name in the Parameter #1 field.

  2. Click Add to save the entry in the specified destination folder.

  3. In your RDP entry properties, set the credentials property to use the newly created Custom credentials entry.

  4. Still in the RDP entry properties, go to AdvancedAdvanced.

  5. Set the Override domain property to Use Host Name and the Username format property to {Domain}\{User}.

  6. Click on Update to save your changes.

The RDP entry is now ready to be used and connect with the local administrator account managed by Windows LAPS.

Last updated

Was this helpful?