Monday, February 25, 2008

How to know the current session of a particular machine inside a network.

1. Go to "Start" then "Run"
2. Type "cmd" then hit Enter.
3. Type “net session” to view the machines connected to your machine

-------------------------------------------------------------------------------
Sample:
C:\Documents and Settings\libertyb>net session
Computer User name Client Type Opens Idle time
-------------------------------------------------------------------------------
\\202.138.161.4 PH-PRINTER$ Windows 2000 2195 1 01:32:27
The command completed successfully.
-------------------------------------------------------------------------------


4. To delete the session, just type “net session /delete”
-------------------------------------------------------------------------------
C:\Documents and Settings\libertyb>net session /delete
These workstations have sessions on this server:

202.138.161.4
Do you want to continue this operation? (Y/N) [Y]: y
These workstations have sessions with open files on this server:

202.138.161.4
Do you want to continue this operation? (Y/N) [N]: y
The command completed successfully.
-------------------------------------------------------------------------------


5. For a particular machine, just type in “NET SESSION [\\computername] [/DELETE]”

No comments: