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