Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Account Permissions

Status
Not open for further replies.

robros

Programmer
May 22, 2001
241
US
Hello All
I am wondering if there is a utility that will give me all user accounts and the groups that they belong to and what permission that those users and groups have.


Any Ideas (or is this wishful thinking)



RKR.
 
The only way that I could come up with is kinda long. First export a list of your usernames into an excel spreadsheet. The usernames should only be in one column.

Next add a column in front of the usernames and type in "net user ". Make sure that there is a space after "user" Fill in all of the cells that have a username after it in the column over. (net user is in Column A and usernames are in Column B)

In the column after the usernames type
" /domain >> c:\filename.txt" again remembering to mind the spaces. (Column C)

This also needs to be all the way down your username column, as the "net user" did.

Now just concatonate in column "D", which should be your next free column. =a1&b1&c1

Drag this all the way down, and copy that column into a txt file. Should look as follows:
net user username /domain >> c:\filename.txt
Save as a batchfile and execute. This will send a lot of info into that text file, but you can do a "Edit/find" on the username you need to find info on. Thats all I got.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top