Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Disallow remote connections to SQL via PowerShell

$
0
0

I have been asked to go through and disable remote connections to all SQL servers. This brings me to 2 problems:

  1. There are about ~300 servers I know have SQL, not sure about the rest.
    Yes I know we should know what's installed on our servers, and I know inventory software can do this for us like say SpiceWorks, but that's an uphill battle I'm not winning.
  2. Can I disallow remote connections via a PowerShellscript, remotely?
    Ideally I'd harvest names in step 1, confirmthey should not have remote connections allowed and then feed that list into a script. I know very little SQL.

Screenshot (redacted) of GUI interface from the request:



Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>