Export Users Server 2008 R2

exportusers

I'm using Server 2008 R2 on a single server, AD not installed. When I go into Server Manager and right click the "Users" folder under Local Users and Groups, I'm given the option to "Export List", which creates a nice text file of my users. I've used the command line net user, but that only shows the username. Is the export option available from the command line?

Best Answer

Try:

get-wmiobject -class win32_useraccount | Select-Object Caption, FullName, Name, Description

in PowerShell and see if that gives you what you want. You can then export to text:

get-wmiobject -class win32_useraccount | Select-Object Caption, FullName, Name, Description | out-file c:\users\you\documents\accounts.txt

or csv:

get-wmiobject -class win32_useraccount | Select-Object Caption, FullName, Name, Description | export-csv c:\users\you\documents\accounts.csv

or whatever.