Hi,

I am wanting to know how to get some information from a computer and save it to a text file. I know how to save it to a text file, but I am not sure how to get the information I am after.

Some of the things that I want to know about the computer is

1) User Logged in
2) IP Address
3) Host Name
4) How Long they have been logged in
5) How long windows has been running

and anything else that people can think of.
I want to include as much information as possible in the text file.

Just so that you know what it is for, I am a network admin for a school and would like to be able to find out who logged in when and how long for and any other relevant information that you can think of.

Also if you are going to post a sugestion please include some source code if possible, If you do not know the source please post tue sugestion anyway cause someone else (or maybe even me) might know how to.



Thanks

Hurgh