How to Query Windows LAPS Passwords Across Domains?

January 12, 2026 2 answers
Asked by TechieNinja42
I've recently set up Windows LAPS throughout our network, which spans two domains. I can retrieve LAPS passwords from the domain I'm currently in, but I'm having trouble figuring out how to query LAPS across domains. I know I can use Get-ADComputer with the server specified, but whenever I try to query LAPS from the other domain, I keep running into an error saying that the host can't be found. Any advice on how to make this work?

Answers

CodeMonkey101
Glad I could help! Itโ€™s a common mistake to forget to include the domain when pulling LAPS passwords. Just make sure you're addressing the right domain during your queries!
Reply to this answer
AdminGuru88
It sounds like you're using PowerShell to get the password, which is the right approach. To fetch LAPS passwords cross-domain, you should use Get-LapsADPassword with the -Domain parameter to specify the domain you're querying. If you need to use different credentials for that domain, don't forget to include the -Credential parameter as well.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions