Solved

To view active users and kill them all

Posted on 2002-04-05
9
150 Views
Last Modified: 2010-04-13
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
0
Comment
Question by:maliksl4141
  • 4
  • 3
  • 2
9 Comments
 
LVL 7

Accepted Solution

by:
jmiller47 earned 25 total points
ID: 6921380
I do want to point out that killing all your users is against the law.. but it is a big stress reliever..

However, you can use Computer Management and under System Tools>Shared Folders>Sessions you will find a list of connected users and you can disconnect them at will.

I hope this helps.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6921402
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
0
 
LVL 11

Expert Comment

by:griessh
ID: 6921405
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
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 7

Expert Comment

by:jmiller47
ID: 6921411
maliksl4141 - Is that true? Do you want a command line utility?
0
 

Author Comment

by:maliksl4141
ID: 6924416
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
0
 
LVL 11

Expert Comment

by:griessh
ID: 6924457
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
0
 

Author Comment

by:maliksl4141
ID: 6924476

 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
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 6924515
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

0
 
LVL 7

Expert Comment

by:jmiller47
ID: 6928578
Did the net session command work for you maliksl4141? Please let me know.

Thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question