Get LAPSCredential - PPOSHGROUP/PPoShTools GitHub Wiki
PPoShTools -> Get-LAPSCredential.ps1
Retrieves LAPS password from AD and creates Credential Object
Get-LAPSCredential [-ComputerName] <String> [<CommonParameters>]
Using Local Administrator Password Solution cmdlet Get-AdmPwdPassword will query AD for ms-Mcs-AdmPwd attribute. Will use retrieved password to create Credential Object
ComputerName to search for LAPS password
- PipelineInput: true (ByValue, ByPropertyName)
- Required: true
Get-LAPSCredential -ComputerName 'SomeComputer'
UserName Password
SomeComputer\Administrator System.Security.SecureString