Link to home
Start Free TrialLog in
Avatar of maliksl4141
maliksl4141

asked on

To view active users and kill them all

HI..
 
  How to do this in Win 2000 Server

  1) view currently conneted users (like $w in Unix)
  2) kill session (like kill -9 pid in Unix)


   Thanks
ASKER CERTIFIED SOLUTION
Avatar of Joel Miller
Joel Miller
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A nice package with unix like tools is in:

http://porthos.ist.utl.pt/ftp/win98/utils/unix95.7.zip 

It has a 'kill' and a 'ps'. so you should know how to use that. But there is no 'who' command available ...

======
Werner
That's not what maliksl4141 was talking about. He wants to know who is on the system and he wants to know how to kill a process from the command line ...

======
Werner
maliksl4141 - Is that true? Do you want a command line utility?
Avatar of maliksl4141
maliksl4141

ASKER

thanks..it is true that i need
a command line guide to do it.
however, since my question is not
clear, i'll accept the answer.
furthermore, it helps.
tq
maliksl4141

I don't understand. Why don't you want to clarify your problem. By accepting an answer you take your question out of the list ...

======
Werner

 i'll accept the answer because it helps me
 to solve my problem already.

 it's just nice to be able to do it in commaand line
  for i'm used to Unix environment.

  tq
Well that's not a problem. Use the following:

NET SESSION

net session [\\host] [/DELETE]

Without arguments, display session information for all connections to the local system. If a host is specified, information about the session between the local system and that particular system is displayed.

The /DELETE option causes the specified session (if a host is specified) or all sessions toterminate, closing all associated open local files.

This is a exerpt from "windows 2000 Commands Pocket Reference" from O'REILLY. I highly suggest purchasing this book if you come from a UNIX command-driven environment or wish to script. The ISBN is 0-596-00148-7 and is listed for only $10.00. You can purchase it from Amazon at the the following address http://www.amazon.com/exec/obidos/ASIN/0596001487/qid%3D/103-4538728-0723009

Did the net session command work for you maliksl4141? Please let me know.

Thanks