how to list all user accounts on server

by atlblackops at 2013-01-29 10:41:06

I’m looking for a script that list all user accounts that have access to a given windows server (2008 server) Can’t find one anywhere.

thx,
by DonJ at 2013-01-29 10:59:40
That “have access?” You mean all user accounts that the machine knows about? Query Win32_UserAccount using WMI.