Forum Discussion
yashsedani
Apr 06, 2020Brass Contributor
How do I get that machine back in the session host list?
Hi, I had 20 machines in hostpool. I executed the below command Remove-RdsSessionhost -TenantName "test" -HostPoolName "testpool" -Name "test15.xyz.com" Now when I do get-rdssessionhost, it gives me t...
Soo Kuan Teo
Microsoft
Apr 13, 2020Can you please check the regkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent, IsRegistered should be 1, and RegistrationToken should be empty. Also please look at event log application to see there are any error messages from RDAgentBootLoader.
yashsedani
Apr 13, 2020Brass Contributor
There was no IsRegistered key so i added 1 DWORD-32 and changed value to 1, RegisterationInfo was showing the old Token ID, i kept it blank now. I tried reinstalling agent with new token (as the earlier one was expired) but still it wont show up in session host list.
There are 3 repeat events errors for RDAgentBootLoader, refer 1,2,3 in the attached.
- Soo Kuan TeoApr 14, 2020
Microsoft
Thanks for the info! the agent is not registering correctly. It is very possible that the downloaded agent package is corrupted. Here's the detailed instruction to recover:
1. Go to control panel, uninstall bootloader first then uninstall the agent. See attached uninstall.png
2. Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDAgentBootLoader and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent keys, make sure these keys for gone. See attached regkey.png.
3. Download both the bootloader and agent from: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell
4. have the new or unexpired registration token ready
5. Install the agent first with the valid token
6. install the bootloader
- yashsedaniApr 15, 2020Brass Contributor
After uninstalling both Agent and Bootloader, there is no registry for both. When i reinstall, it takes the old token (when machine was first created) from somewhere and there is no IsRegistered key (same as before)
- Soo Kuan TeoApr 16, 2020
Microsoft
Do you see any new event logs from agent?