Attached to this article is a script to help automate connecting to and readying Login VSI launchers. However, it should be considered a fallback to both 1) the built-in Login VSI launcher workflow (in the Start Test Wizard), and 2) the Windows autologon policy being enabled on the launchers.
The script will restart defined launcher hosts and reconnect to them via mstsc. This should result in the launchers running the logon script automatically, invoking the launcher agent, and reporting in as ready for testing. This will allow Login VSI testing to start.
Note: this script is unsupported and is provided as-is for ease of use. Though unlikely, unforeseen issues could occur.
There are usage instructions commented-out in the top of the attached script.
- Outside of this script, it's expected the launcher user will already automatically run the agent.exe (launcher agent) via a startup script.
- The launcher user needs read, write, and modify permissions to the Login VSI share on both the SMB and NTFS levels.
- The host running the script, typically the Login VSI server computer and user, needs permissions to be able to successfully administer a remote host restart and an mstsc connection to.