SYMPTOMS
Some VEs stop extremely slow.CAUSE
The possible reason is terminal server registry settings set for the current VE."HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"
KeepAliveEnable
KeepAliveInterval
RESOLUTION
Remove the registry values above:reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f
reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f REM
REM Deleting "KeepAlive..." value - causes a long delay on VPS stop
REM
reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f
reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f
Note: Please back up original on_vps_startup.cmd file before doing any changes.