NetSPI / PowerUpSQL

PowerUpSQL: A PowerShell Toolkit for Attacking SQL Server
Other
2.47k stars 462 forks source link

Get-SQLInstanceDomain misses named instances #15

Closed dimpol closed 7 years ago

dimpol commented 7 years ago

On my lab domain I have added a MSSQLSERVER machine with the default settings. (no named instance) Then, I added 2 named instances on the same machine.

Get-SQLInstanceDomain run from another domain joined machine only identifies the first one and misses the two named instances that I added later.

Get-SQLInstanceLocal run on the MSSQLSERVER identifies all instances correctly, as expected.

Any clues what is going wrong?

dimpol commented 7 years ago

Had to manually set SPNs of course. I'm dumb. By the way is it possible to add multiple SPNs under the same domain account?

nullbind commented 7 years ago

Im pretty sure you can as long as they are unique