Preparation
Create VM to run case, such as IST job

2. Config jenkin to connect VM
Request management permission and create your jenkins job in your team jenkins server, like this

2.Create a new node
.
3. Config your node(pay attention to use websocket check, this will make your connect more stable)

4. Copy your server cacerts file to your client folder(keep same folder)
3. Put your start jenkins_startup.bat into startup folder
Or
note: this need user account, you need to config regedit to auto login.
There are steps to config registry to auto login.
open registry and expand to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\currentversion\Winlogon
2. Click Winlogon,
Find “AutoAdminLogon“ turn value as '1';
Find “DefaultUserName“ turn value as your account;
Find “DefaultPassword“ turn value as your password;(if no “DefaultPassword“, create a new one)
4.Then you can take a snapshot for the current VM status and write your pipeline script in your jenkins job.