PowerUpSQL icon indicating copy to clipboard operation
PowerUpSQL copied to clipboard

Is there any way to target a different domain?

Open dsolstad opened this issue 3 years ago • 1 comments

In essence I want to scan another domain with Get-SQLInstanceDomain, but it doesn't seem to be an argument to target another domain. Is there any other way?

dsolstad avatar May 05 '21 08:05 dsolstad

Short answer: Not cleanly.

However, you can target other domains by providing a domain controller for the desired domain. It works, but the function could use an update. I'll leave this one open.

Get-SQLInstanceDomain -DomainController dc1.targetdomain.com -Username domain\username -Password password123

nullbind avatar Aug 21 '21 14:08 nullbind