tamnk01 Posted April 22, 2009 Report Share Posted April 22, 2009 Dear All, I would like to audit system and check how many user account in PC, and which privilege of all user account? How can I do that? Please advise. Thanks and Best Regards Tam Quote Link to comment
Support Posted April 22, 2009 Report Share Posted April 22, 2009 Hello Tam, Unfortunately our program doesn't collect this information in the current version. But we will add such possibility in the next version. Our apologies for the inconvenience. Quote Link to comment
tamnk01 Posted April 23, 2009 Author Report Share Posted April 23, 2009 Hello Tam, Unfortunately our program doesn't collect this information in the current version. But we will add such possibility in the next version. Our apologies for the inconvenience. Hello Support, Thanks for your reply, but do you know how to list all user belong to Administrators Local Group and Power Users Local Group? (such as run by other tools or command line of Microsoft?) Tam Quote Link to comment
Support Posted April 23, 2009 Report Share Posted April 23, 2009 Thanks for your reply, but do you know how to list all user belong to Administrators Local Group and Power Users Local Group? (such as run by other tools or command line of Microsoft?) Yes, it can be done by running a VBScript. Create a file with *.vbs extension (for example UsersGroup.vbs) with the following text (lines starting with apostrophe are comments): 'Set the computer name. Dot means local PC, and a network name of remote computer can be used. strComputer = "." strUsers = "" 'Replace "/Administrators" with "/Power Users" to view that group's users. Set colAccounts = GetObject("WinNT://" & strComputer & "/Administrators") For Each objUser In colAccounts.Members strUsers = strUsers & objUser.Name & vbCrLf Next 'Uncomment the following four lines to get both Administrators and Power Users at the same time 'Set colAccounts = GetObject("WinNT://" & strComputer & "/Power Users") 'For Each objUser In colAccounts.Members ' strUsers = strUsers & objUser.Name & vbCrLf 'Next Wscript.Echo strUsers If you run this file just double-clicking on it, it will show you a message box. It's text can be copied by pressing "Ctrl+C" in the box itself. If you need a console output, run the following command: csript //NoLogo UsersGroup.vbs Quote Link to comment
tamnk01 Posted April 24, 2009 Author Report Share Posted April 24, 2009 Dear Support, Your tool very well. Thanks so much. It only run one by one but any way I like this. Tam Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.