Local Administrator Password Solution - Configuration & Usage
Microsoft LAPS automatically manages local administrator passwords on domain computers. Each computer has a unique password that rotates regularly and is stored in Active Directory.
Replace COMPUTERNAME with the actual computer name.
| Task | PowerShell Command |
|---|---|
| Get password for single computer | Get-LapsADPassword -Identity PC001 -AsPlainText |
| Get password with expiration date | Get-LapsADPassword -Identity PC001 -AsPlainText | Select-Object ComputerName, Password, ExpirationTime |
| Force immediate password reset | Reset-LapsPassword -Identity PC001 |
gpupdate /force then Invoke-LapsPolicyProcessing