The syntax of this command is:
NET SESSION [\\computername] [/DELETE] [/YES]
This command lists or disconnects sessions between a server
and clients.
COMMENTS
To display information about all sessions with the local
server, type "net session" without options.
Use the "net session" command to display a list of users
accessing a server (their computername and username), if
they have files open, and how long each user's session is
idle.
The "net session" command can also be typed "net sessions" or
"net sess".
The display is similar to the following:
Computer User name Client Type Opens Idle time
------------ ------------- ------------ ------- ----------
\\MARIEL MARIEL DOS LM 2.1 1 00:00:13
\\LYNNC ADMINISTRATOR DOS LM 2.1 0 01:05:13
\\KATE_42987 ADMINISTRATOR DOS LM 2.1 0 00:00:00
Executing the "net session" command creates a session, so even
if there are no other active sessions, at least one-the one
created by this command-is always listed in the display.
This session will appear similar to the last one displayed
in the screen above.
When a display is for one user's session (computername is
included with the command), the display includes a list of
shared resources to which the user has connections.
A session is recorded when a user on a client successfully
contacts a server. A successful session occurs when the two
systems are on the same network, and the user has a username
and password that are accepted by the server. A user at a
client has to have a session with a server before being able
to use the server's resources, and a session is not
established until a user at a client tries to access a
resource. A client and server have only one session, but
they can have many entry points to resources (connections).
To set how long a session can remain idle before being
automatically disconnected, use the \SYSTEM\CurrentControlSet\
Services\LanmanServer\Parameters\AutoDisconnect value in the
Registry or the /AUTODISCONNECT option of the "net config
server" command. An automatic disconnection is transparent
to the user because the server reconnects the session when
it becomes active.
If the user tries using the session after it is
disconnected, the client tries to reconnect the session. If
the username or password used to reconnect differ from that
used to initially create the session, an error message is
displayed.
To end a session with the server, use the /DELETE option
with computername.
EXAMPLES
From the UNIX system console, to display session information
for a client where "myclient" is the name of the client,
type the following:
net session \\myclient
If you discover there is a problem with a session, notify
the user currently logged on to "myclient" that you must
disconnect the session in order to correct the error. Then,
to disconnect all sessions between "myclient" and the
server, type the following:
net session \\myclient /delete
To end all sessions between your server and other computers,
type the following:
net session /delete
To run the same command remotely (on server "market_asu"), type
the following (replacing "password" with the password for
"administrator":
net admin \\market_asu password /command net session /delete
SEE ALSO
For information about See
_____________________ _________
Getting help with network commands net help
Checking the status of sessions net status
To get Help on command options, type "net help {command} /options | more".
To get Help one screen at a time, type "net help {command} | more".