Skip to content

Files

Latest commit

 

History

History
13 lines (10 loc) · 534 Bytes

get-lapspasswords.md

File metadata and controls

13 lines (10 loc) · 534 Bytes

Source

https://github.com/r1cksec/Get-LAPSPasswords/blob/master/Get-LAPSPasswords.ps1

Retreive all available laps passwords

Get-LAPSPasswords -DomainController <domainControllerIp> -Credential <domain>\<user> 

Read laps password from single computer

$sc =  ConvertTo-SecureString '<password>' -AsPlainText -Force ; $cred = New-Object System.Management.Automation.PSCredential('<domain>\<user>', $sc); Get-LAPSPasswords -domainController <domainControllerIp> -computer <computerName> -credential $cred