We tried to auto shutdown some host VMs during off-hours. But we found that user will still keep in the same session host VM which has been shutdown and he cannot connect to WVD anymore. (There is another VM still running that he can connect to it) And the error log as below：
Error Code Symbolic： Connection Failed User Has Valid Session But Rdsh Is Unhealthy
Error Operation： Lookup Session Host Pool
Error Message：SessionHost = ≤WvdHost-14.XXX.com≥ is not healthy.
It seems that session will still keep when host VM has been shutdown.
1. How to automatically remove all the user sessions when VM has been shutdown? Instead of using PowerShell to remove individual session by Invoke-RdsUserSessionLogoff.