Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Enumerate sql databases and users of each

$
0
0

I'm trying to use PS to enumerate all non-system databases on a sql 2008 server and, for each database, list the corresponding non-system user accounts and server logins. Finally, I'll send the results to a CSV file. (At this time I'm not interested in the permissions). I can list the databases, but don't know how to list the users. Any thoughts appreciated.

TIA,

edm2



Viewing all articles
Browse latest Browse all 21975

Trending Articles



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