Login VSI and Login PI rely on the ability of the Test Account to run a specific logon script or start up script during logon or after logon has completed. If using logon scripts will be an issue then the startup script method will be used.
Logon scripts can be set a variety of ways and all valid. You can use GPOs or associate a logon script with the user Active Directory Object for example.
The startup script can exist in one of two locations:
- Startup folder location per user: %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
- Startup folder location per system: %programdata%\Microsoft\Windows\Start Menu\Programs\StartUp
Login PI actually uses two scripts:
You can run logon.cmd from any location. Logon.cmd contains an API_URL that points to http://PIServer:8080/api/scripts/bootstrapper
By default Logon.cmd does not contain the actual URL, just a place holder. To generate a logon.cmd simply download it from the following URL:
You can also manually edit the file located at C:\Program Files\Login PI\target\scripts
You may find that you need a specific URL format that uses either host name alone or FQDN. You can adjust the host name or FQDN used in these files by editing C:\ProgramData\Login VSI\Login PI\Configuration\server.json