Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there an equivalent in Windows for the w command in Linux/Unix?

share|improve this question
    
What does the w command do in linux/unix? –  Matthew Steeples Apr 4 '11 at 20:46
    
@matthew: like ` who`, it shows the users connected to the system. –  petrus Apr 4 '11 at 20:52
    
Who and W are different.... –  Campo Apr 4 '11 at 20:56
    
@campo: indeed, but they both show connected users. w is more detailed as it shows what the users are doing. –  petrus Apr 4 '11 at 22:30
    
In Windows: No exact command match. Tasklist.exe gives a complete list of what programs each logged on entity has launched, and processor and memory utilization info for each, rather than the single app that W gives. Psloggedon.exe gives a session list, and how they are authenticated - console vs network, but has no process info. WMI may be able to give information on both, but it is more complex. You'll need to say something about why you have interest, –  RobW Apr 5 '11 at 1:02
add comment

2 Answers 2

depending on what you are looking for query user, query session, or query process will provide similar functionality. Tasklist /v is also useful. Typical windows workstations are single purpose. Servers usually have few actual users on them (with the exception of terminal servers) so I haven't seen a real need for a "w" type command.

Yet another way would be to use WMIC list process brief However to get owner info you would have to call getowner for a process you are interested in.

for detailed process info you can use

wmic /output:wmic.html process list full /format:hform

and view the wmic.html file in your browser

share|improve this answer
add comment

I would use

tasklist

there are various switches at

tasklist /?

that should accomplish what you requested

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.