Skip to content

Get LAPSCredential

Mateusz Czerniawski edited this page Aug 29, 2018 · 1 revision

Get-LAPSCredential

PPoShTools -> Get-LAPSCredential.ps1

Synopsis

Retrieves LAPS password from AD and creates Credential Object

Syntax

Get-LAPSCredential [-ComputerName] <String> [<CommonParameters>]

Description

Using Local Administrator Password Solution cmdlet Get-AdmPwdPassword will query AD for ms-Mcs-AdmPwd attribute. Will use retrieved password to create Credential Object

Parameters

-ComputerName<String>

ComputerName to search for LAPS password

  • PipelineInput: true (ByValue, ByPropertyName)
  • Required: true

Examples

Example 1

Get-LAPSCredential -ComputerName 'SomeComputer'

UserName Password


SomeComputer\Administrator System.Security.SecureString