Skip to main content

Deactivate User

Use this command to deactivate a user. Deactivated users will not be able to sign on to Longview, however the user’s information and settings remain in the database. When the user is Activated, the user can sign on to Longview again.

Syntax (regular)

DEACTIVATE USER [DomainName\]UserId

where:

  • DomainName is optional and is the network domain of a Windows-authenticated user.
  • UserId is the name of the user to which you want to activate.

Syntax example:

DEACTIVATE USER JSmith

Creating an ASCII input file

To deactivate multiple users, specify the parameters for this command in an ASCII file.

Create an ASCII file containing the following information for each user:

[DomainName\]UserId

Syntax (with an ASCII file):

DEACTIVATE USER @FileName

where:

  • FileName is an ASCII file containing the data. It can include a complete or a partial folder path in the format C:\...\FileName. If FileName includes spaces, enclose it in double quotation marks; for example:

    @"C:\My Documents\My Data.txt"

Syntax example:

MAINTENANCE ON

DEACTIVATE USER @users.txt

MAINTENANCE OFF

See also

Was this article helpful?

We're sorry to hear that.