PowerUpSQL
PowerUpSQL copied to clipboard
Is there any way to target a different domain?
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?
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