Fine-tuning the Simulation
One of the key pre-requisites for the simulation is a user account with local administrator rights on the simulation endpoint. This user should also be logged in at all times for the simulator to run continuously. Sometimes however, this user session may get disconnected. For instance, if the simulation endpoint is rebooted due to automatic updates, scheduled reboots, power failure etc., the user session on the simulation endpoint may get disconnected.
Every time a session disconnect occurs owing to reasons cited above, the administrator will have to login to the endpoint by manually providing the user credentials at the login prompt, while the system boots. If this is not done, then the user session will not get up and running; consequently, the simulation will not occur.
To save the time and effort involved in manually typing the login credentials everytime the endpoint reboots, and to make sure that a user is always logged into the endpoint (even when it reboots) for the purpose of the simulation, you can automate a user login at the time of a reboot. To achieve this, you can either run Autologon.exe or manually edit the windows registry.
Note:
Editing the windows registry or executing the Autologon.exe will not work if the Logon Banner defined on the server either by a Group Policy object (GPO) or by a local policy appears before the login screen.
Fine-tuning the simulation using Autologon.exe
If you wish to automate the user logon using Autologon.exe, follow the steps below:
-
Download the Autologon.zip file from the Download Autologon link from the following location:
https://docs.microsoft.com/en-us/sysinternals/downloads/autologon
- Extract the contents of the Autologon.zip file.
-
Once extracted, run the Autologon.exe file.
-
Figure 1 then appears. Click Agree to accept the Sysinternals Software License Terms.
- In Figure 2 that appears next, the name of the user and the domain to which the user belongs will be automatically populated against the Username and Domain fields. Specify the password that should be used for automatic user logon against the Password text box.
- Click the Enable button.
- Ensure that the eGurkhaAgentServices are delayed for a period of 5 minutes (using Automatic (Delayed Start) Service properties ) before restarting the simulation endpoint.
- Finally, restart the simulation endpoint.
Fine-tuning the simulation by editing the windows registry
If you wish to automate the user login by editing the windows registry, follow the steps below:
- Open the Windows Registry Editor.
-
Locate the following registry entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Winlogon
-
In this registry entry, add the following REG_SZ string values:
- AutoAdminLogon: To enable automatic user logon on the simulation endpoint, set this string value to 1.
- DefaultUserName: Specify the name of the user who is authorized to login into the simulation endpoint.
- DefaultPassword: Specify the password for the user mentioned in the DefaultUserName. Note that the password should be entered in plain text.
- DefaultDomainName: Specify the domain to which the user belongs to.
- Ensure that the eGurkhaAgentServices are delayed for a period of 5 minutes (using Automatic (Delayed Start) Service properties ) before restarting the simulation endpoint.
- Finally, restart the simulation endpoint.