How to Query Windows LAPS Passwords Across Domains?

0
9
Asked By TechieNinja42 On

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?

2 Answers

Answered By AdminGuru88 On

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.

Answered By CodeMonkey101 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.