Managing Sessions (IIS 6.0)

There might be times when you need to manage or monitor sessions as an administrator. You can terminate a session or all current sessions, or you can enumerate users. For example, if a specific user is posting inappropriate messages to an unmoderated newsgroup, you can terminate the session for that user.

You can manage sessions in IIS Manager or by using the Rsess.vbs command-line script. To manage sessions in IIS Manager, right-click the session, and then click the appropriate action.

Managing Sessions Using Rsess.vbs

Table 8.6 lists and describes the parameters that you can use with Rsess.vbs.

Table 8.6 Rsess.vbs Parameters
ParameterDescription

-t operation, where Operation is     one of the following arguments:

e

d

a

Enumerates current sessions.

Deletes the session. (You must also specify -uUserNameor -IIPAddress.)

Deletes all sessions and terminates the client connection.

-u UserName

Specifies the user name to delete.

-I IPAddress

Specifies the IP or host name to delete.

-s Server

Specifies the name of the server to configure.

-v VirtualServerID

Specifies the ID of the virtual server (an integer).

Table 8.7 lists examples of how you can use Rsess.vbs.

Table 8.7 Rsess.vbs Script Examples
Command ScriptFunction
Rsess.vbs -t e -v 1 

Lists the current sessions for NNTP site 1.

Rsess.vbs -t d -u john_doe 

Terminates the session for the user john_doe.

Rsess.vbs -t a 

Terminates all sessions.

  Note

Rsess.vbs -t e returns a list of the local feed (that is, the inbound push feed) as an anonymous connection.



© 2016 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies
Microsoft