Set User
Use this command to change the properties of a user.
Syntax regular
SET USER [DomainName\]UserId DESCRIPTION TO "Description"
SET USER [DomainName\]UserId EMAIL TO "Email"
SET USER [DomainName\]UserId FIRSTNAME TO "FirstName"
SET USER [DomainName\]UserId LASTNAME TO "LastName"
SET USER [DomainName\]UserId HOMEPHONE TO "HomePhone"
SET USER [DomainName\]UserId OFFICEPHONE TO "OfficePhone"
SET USER [DomainName\]UserId PASSWORD TO "Password"
where:
- DomainName is optional and is the network domain of a Windows-authenticated user.
- UserId is the ID of the user whose properties you want to set.
- Description is a description based on the user’s role in the system, enclosed in double quotation marks.
- Email is the user’s email address, enclosed in double quotation marks.
- FirstName is the user’s first name, enclosed in double quotation marks.
- LastName is the user’s last name, enclosed in double quotation marks.
- HomePhone is the user’s home phone number, enclosed in double quotation marks.
- OfficePhone is the user’s office phone number, enclosed in double quotation marks.
- Password is the user’s password.
Note: For more information on the guidelines for user settings, see the Longview Application Administrator Guide.
Syntax example
SET USER JSmith OFFICEPHONE TO "555-555-5555"
Creating an ASCII input file
To make changes for a large number of users, specify the parameters for this command in an ASCII file.
Create an ASCII file containing the following information for each user:
[DomainName\]UserId{DESCRIPTION{TO{Description
[DomainName\]UserId{EMAIL{TO{Email
[DomainName\]UserId{FIRSTNAME{TO{FirstName
[DomainName\]UserId{LASTNAME{TO{LastName
[DomainName\]UserId{HOMEPHONE{TO{HomePhone
[DomainName\]UserId{OFFICEPHONE{TO{OfficePhone
[DomainName\]UserId{PASSWORD{TO{Password
Syntax (with an ASCII file)
SET 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"
Note: If the document is in the same location as lv_af.exe, you do not need to specify the drive or path.
Syntax example
MAINTENANCE ON SET USER @userinfo.txt MAINTENANCE OFF