There are two options to disable TestStand user management:Disable Login dialog and automatically login as administrator:
Automatically login using a Windows username:
- Make sure that the default administrator user exists in the TestStand User Manager and has full administrator privileges.
- To ensure that you can revert any changes made by following the steps in this KnowledgeBase article, browse to <TestStand>\Components\Callbacks\FrontEnd and copy FrontEndCallbacks.seq and remaining contents of the folder to <TestStand Public>\Components\Callbacks\FrontEnd.
- In TestStand, open FrontEndCallbacks.seq from the new location that you copied it to in step 2.
- In the sequence file, select the LoginLogout Sequence.
- Right-click the Login step and select Run Mode >> Skip to disable the default login dialog.
- Add a new Statement step below the Login step and name it Login as administrator.
- Set the expression of the Statement step to: RunState.Engine.CurrentUser = RunState.Engine.GetUser("administrator")
- This will set the "administrator" user as the current user in TestStand.
- This step should only run when TestStand is logging in, so set the Precondition to: !Parameters.logout
- Save the FrontEndCallbacks.seq sequence file.
- The next time TestStand is launched, the administrator user will be automatically logged in.
- Login to TestStand as an Administrator
- Go to Configure >> Station Options >> User Manager and select Automatically Login Windows System User.
- Go to View»User Manager to display the current TestStand users.
- If necessary, create a new user with the desired windows username. (Note that the TestStand user's password does not need to be the same as the Windows user's password.)
- When this Windows user launches TestStand, TestStand will automatically login using his/her username.
TestStand uses the LoginLogout sequence of the FrontEndCallbacks.seq sequence file to log users in and out. You can modify the sequence such that TestStand will automatically login as the administrator (or as any other user). This is accomplished through the first method.
If the TestStand User Manager defines a username that is identical to the username currently logged into Windows, TestStand can automatically login as that user. This is done in the second method.