I need to get a list of users that have logged onto a computer, i'm currently doing this at the moment by going into the Documents and Settings folder and copying and pasting the name of each folder(the persons username) into an Excel spreadsheet. Is it possible to export all of them into an Excel spreadsheet say for example? If not, is there an easier way to do this?
Will following command satisfy your needs?
You can also type in the RUN:
The computer management console will appear. Right click on Users hive and select export. It will give you list of all users.