Skip to content

Commit c9a80b2

Browse files
committed
Added 'remove assignment' section to desktop assigment articles.
1 parent 7d29f01 commit c9a80b2

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

articles/virtual-desktop/configure-host-pool-personal-desktop-assignment-type.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: HeidiLohr
66

77
ms.service: virtual-desktop
88
ms.topic: conceptual
9-
ms.date: 04/30/2020
9+
ms.date: 05/22/2020
1010
ms.author: helohr
1111
manager: lizross
1212
---
@@ -67,6 +67,18 @@ To assign a user to a specific session host, run the following PowerShell cmdlet
6767
Update-AzWvdSessionHost -HostPoolName <hostpoolname> -Name <sessionhostname> -ResourceGroupName <resourcegroupname> -AssignedUser <userupn>
6868
```
6969

70+
## Remove a user assignment
71+
72+
You may want to remove a user assignment either because the user no longer needs the personal desktop, the user has left the company, or you want to reuse the desktop for someone else.
73+
74+
Currently the only way you can remove the user assignment for a personal desktop is to fully remove the session host. To remove the session host, run this cmdlet:
75+
76+
```powershell
77+
Remove-AzWvdSessionHost
78+
```
79+
80+
If you need to add the session host back into the personal desktop host pool, uninstall Windows Virtual Desktop on that machine, then follow the steps in [Create a host pool with PowerShell](create-host-pools-powershell.md) to re-register the session host.
81+
7082
## Next steps
7183

7284
Now that you've configured the personal desktop assignment type, you can sign in to a Windows Virtual Desktop client to test it as part of a user session. These next two How-tos will tell you how to connect to a session using the client of your choice:

articles/virtual-desktop/virtual-desktop-fall-2019/configure-host-pool-personal-desktop-assignment-type-2019.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: HeidiLohr
66

77
ms.service: virtual-desktop
88
ms.topic: conceptual
9-
ms.date: 03/30/2020
9+
ms.date: 05/22/2020
1010
ms.author: helohr
1111
manager: lizross
1212
---
@@ -71,6 +71,18 @@ To assign a user to a specific session host, run the following PowerShell cmdlet
7171
Set-RdsSessionHost <tenantname> <hostpoolname> -Name <sessionhostname> -AssignedUser <userupn>
7272
```
7373

74+
## Remove a user assignment
75+
76+
You may want to remove a user assignment either because the user no longer needs the personal desktop, the user has left the company, or you want to reuse the desktop for someone else.
77+
78+
Currently the only way you can remove the user assignment for a personal desktop is to fully remove the session host. To remove the session host, run this cmdlet:
79+
80+
```powershell
81+
Remove-RdsSessionHost
82+
```
83+
84+
If you need to add the session host back into the personal desktop host pool, uninstall Windows Virtual Desktop on that machine, then follow the steps in [Create a host pool with PowerShell](create-host-pools-powershell-2019.md) to re-register the session host.
85+
7486
## Next steps
7587

7688
Now that you've configured the personal desktop assignment type, you can sign in to a Windows Virtual Desktop client to test it as part of a user session. These next two How-tos will tell you how to connect to a session using the client of your choice:

0 commit comments

Comments
 (0)