Let’s load PowerUpSQL
. .\\PowerUpSQL.ps1

Getting the SQL SPNs
Get-SQLInstanceDomain -Verbose

Now checking if we have the Accessibility to connect to the server
Get-SQLInstanceDomain | Get-SQLConnectionTestThreaded -Verbose

Please notice that I have a connection success on the dcorp-mssql server!
Let’s see I we can extract some information about the server
Get-SQLInstanceDomain | Get-SQLServerInfo -Verbose

Please notice that we have access but not as Sys Admin!
Enumerating Database Links
Get-SQLServerLink -Instance dcorp-mssql -Verbose
