SOLVED

Re assign user to Session host in Personal Pool desktop

%3CLINGO-SUB%20id%3D%22lingo-sub-1444086%22%20slang%3D%22en-US%22%3ERe%20assign%20user%20to%20Session%20host%20in%20Personal%20Pool%20desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1444086%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EGood%20Day!!!%2C%3C%2FP%3E%3CP%3EWe%20deployed%20WVD%20Spring%202020%20setup%20%2C%20we%20provisioned%20some%20set%20of%20Personal%20Pool-Personal%20Desktop%20and%20assigned%20to%20respective%20users%20into%20each%20sesionhost%20.%20Now%20the%20issue%20is%20we%20need%20to%20remove%20one%20user%20from%20assigned%20session%20and%20then%20add%20new%20user%20to%20the%20same%20sessionhost.%3C%2FP%3E%3CP%3EHow%20can%20we%20achieve%20this%2C%20we%20tried%20to%20update%20using%3C%2FP%3E%3CP%3EUpdate-AzWvdSessionHost%20-HostPoolName%20HP01%20-Name%20AZURE-WVD-5.domain.com%20-ResourceGroupName%20AZURE-WVD1-RSG%20-%3CBR%20%2F%3EAssignedUser%3A%24false%3C%2FP%3E%3CP%3Ebut%20above%20command%20did%20not%20worked%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20appreciated%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards%2C%3C%2FP%3E%3CP%3EKesavan%20K%20M%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1444086%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWVDSpring2020%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1444568%22%20slang%3D%22en-US%22%3ERe%3A%20Re%20assign%20user%20to%20Session%20host%20in%20Personal%20Pool%20desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1444568%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35435%22%20target%3D%22_blank%22%3E%40Kesavan%20Munuswamy%3C%2FA%3E%26nbsp%3B%20Hi%2C%20unfortunately%20you%20cannot%20re-assign%20a%20host%20to%20a%20user.%20The%20quickest%20way%20to%20do%20this%20is%20to%20delete%20the%20existing%20host%20and%20just%20add%20in%20another%20one.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20don't%20want%20to%20remove%20and%20re-deploy%20you%20can%20re-install%20the%20wvd%20broker%20agent%20on%20the%20VM%20using%20the%20following%20steps%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Remove%20the%20host%20from%20the%20pool%3C%2FP%3E%3CP%3E2)%20RDP%20onto%20the%20VM%20and%20uninstall%20the%20WVD%20Broker%20Agent%26nbsp%3B%3C%2FP%3E%3CP%3E3)%20Generate%20a%20new%20token%20from%20the%20portal%26nbsp%3B%3C%2FP%3E%3CP%3E4)%20Re-install%20the%20agent%20using%20the%20token%26nbsp%3B%3C%2FP%3E%3CP%3E5)%20Assign%20the%20host%20to%20the%20user%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1488895%22%20slang%3D%22en-US%22%3ERe%3A%20Re%20assign%20user%20to%20Session%20host%20in%20Personal%20Pool%20desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1488895%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20worked%20for%20me.%3CBR%20%2F%3E%3CBR%20%2F%3E1)%20Remove%20the%20host%20from%20the%20pool%3CBR%20%2F%3E2)%20Generate%20new%20token%3CBR%20%2F%3E3)%20HKLM%5CSoftware%5CMicrosoft%5CRDInfraAgent%20--%26gt%3B%20Enter%20new%20token%20in%20%22RegistrationToken%22%3CBR%20%2F%3E4)%20HKLM%5CSoftware%5CMicrosoft%5CRDInfraAgent%20--%26gt%3B%20Set%20%22IsRegistered%22%20to%20%220%22.%3C%2FP%3E%3CP%3E5)%20Reboot%20the%20session%20host%3C%2FP%3E%3CP%3E6)%20Assign%20the%20host%20to%20the%20user%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20will%20probably%20work%20without%20reboot%20if%20you%20restart%20the%20correct%20services.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi All,

Good Day!!!,

We deployed WVD Spring 2020 setup , we provisioned some set of Personal Pool-Personal Desktop and assigned to respective users into each sesionhost . Now the issue is we need to remove one user from assigned session and then add new user to the same sessionhost.

How can we achieve this, we tried to update using

Update-AzWvdSessionHost -HostPoolName HP01 -Name AZURE-WVD-5.domain.com -ResourceGroupName AZURE-WVD1-RSG -
AssignedUser:$false

but above command did not worked .

 

Any help will be appreciated 

 

Thanks & Regards,

Kesavan K M

2 Replies
Highlighted
Solution

@Kesavan Munuswamy  Hi, unfortunately you cannot re-assign a host to a user. The quickest way to do this is to delete the existing host and just add in another one. 

 

If you don't want to remove and re-deploy you can re-install the wvd broker agent on the VM using the following steps

 

1) Remove the host from the pool

2) RDP onto the VM and uninstall the WVD Broker Agent 

3) Generate a new token from the portal 

4) Re-install the agent using the token 

5) Assign the host to the user

 

Hope that helps! 

Highlighted

This worked for me.

1) Remove the host from the pool
2) Generate new token
3) HKLM\Software\Microsoft\RDInfraAgent --> Enter new token in "RegistrationToken"
4) HKLM\Software\Microsoft\RDInfraAgent --> Set "IsRegistered" to "0".

5) Reboot the session host

6) Assign the host to the user

It will probably work without reboot if you restart the correct services.