I have been asked to go through and disable remote connections to all SQL servers. This brings me to 2 problems:
- 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. - 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: