Forum Discussion

onlyconnect's avatar
onlyconnect
Copper Contributor
Apr 13, 2022

Best practice for removing/deleting session hosts?

I can see it is easy to remove a session host from a host pool. This does not delete the VM but it could then be deleted.

 

I wondered what is best practice regarding the domain join? Does removing the session host dis-join it from the AD or AADDS domain (presumably not)? Is it best to connect to the removed VM and dis-join it from the domain before deleting it?

 

Tim

2 Replies

  • Adin_Calkic's avatar
    Adin_Calkic
    Iron Contributor
    Hi, it does not disjoin session hosts from the active directory, but once you deploy new session hosts, you can put them in drain mode - once confirmed that everything is working as it should be, you can remove old session hosts from the server itself.
  • onlyconnect's avatar
    onlyconnect
    Copper Contributor
    I removed the session host from the host pool, then connected to it and removed it from the domain. I presume there is some way of scripting this for large-scale deployments when the session hosts are refreshed?

Resources