Need know some Windows commands

R

RC

My PC is Windows XP Professional, service pack 2.
I would like to knwo following:

1. Where is the log file contains information
of each user login and logout?

I know the

net user_id

only shows me when was that user last login, but can't tell
when he/she logout.

2. How (what is the command) to find out who (which user) currently
logging in? Similar to UNIX command "w" or "who".
Will be better if also show how long that user has been login?

Or I can calculate the time between current time and user login time.

3a. What is the command to force an user logout?
command

net user /time:....

only can restrict user's login time. But it can NOT force
user to logout when reach to the time limit.
I know Windows NT can do auto logout, but not in Windows XP.
I am disappoint Windows Vista also didn't implemented this nice
feature.
When an user reach to the limit login time or reach
to the maximum login hours per day. That user MUST kick out!

3b. What is the command to shutdown the system?
Similar to UNIX command "shutdown -h now"

Is there a schedule command similar to UNIX's crontab? So I can
set the time to execute the system shutdown?

4. How to prevent any user boot from safe mode?
Only system administrator can boot from safe mode.


I found many software for parents monitor or control their
kids, teenagers PC usage, internet activities. But I don't like
any of them. They are either to complicate or user unfriendly.
Or not full meet above 4 requirements. I found a software called
User Time Control it works well in past year (met 1, 2 and 3
requirements above). But recently I think my kids detected
my password (there are many password detection software out there).

I am decide to write a program meet all above requirements.
I am an UNIX guy . But not expert in Windows 9#/NT/XP/Vista.

Thank Q very much if anyone can provide the help!
 
R

RC

Few more:

5. Any user NOT allow bring up the Process Control Manager
by Ctrl-Alt-Del

6. Any user NOT allow to set system time.

7 Any user NOT allow bring to Control Panel
add/remove, install/uninstallprogram

User Time Control software can help me do 5,6 and 7 so far.
 
S

Steven L Umbach

The best place to find information about user use of the computer is in the
security log which you can access via Event Viewer and by default auditing
of logon events should be enabled. You can use the command logoff to logoff
a user and may want to use it via a Scheduled Task. There is not way to
allow only administrator to logon via Safe Mode that I am aware of. If you
password has been detected then use a password or pass phrase that is at
least 15 characters in length that will be virtually uncrackable though that
will not stop someone with physical access from "resetting" your password if
they can easily boot from other then the system hard drive or using
software/hardware keyboard logger from capturing your password if that is a
possibility.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top