Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 5613

Unable to assign a virtual desktop to any user

$
0
0

I asked this same question about 2 years ago but am asking it again in hopes someone may have found an answer since I just came across the same problem.

In our VDI setup on Windows Server 2012 R2, we have a collection containing many virtual desktops. The last one that was created was assigned to a user but never used.  The user was deleted from AD but the virtual desktop was never assigned to anyone else. Now when I look in the collection from server manager it shows it's assigned to a SID (since the user is gone).

Now when I try to assign it to someone else I get an error of:

Could not assign the virtual desktop DESKTOP1 to the user account USER1.  Exception: Could not assign the virtual desktop USER1 to the user account DESKTOP1.

That is not a typo.  It does in fact say in the second part of the error that the virtual desktop is the user and the user account is the virtual desktop.  Very strange.

I have tried with different users, all who can be assigned to different virtual desktops.  I have tried with users who don't have rights and I get the generic permissions error.  I have also tried through powershell and have gotten this:

set-rdpersonalvirtualdesktopassignment : Failed to set the personal virtual desktop assignment.

At line:1 char:1

+ set-rdpersonalvirtualdesktopassignment -collectionname "Collection1...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-RDPersonalVirtualDesktopAssignment

When I run get-RDPersonalVirtualDesktopAssignment in PowerShell, it is the only one not listed (though I see a SID in the GUI) and subsequently when I tried to remove the assignment, it comes back with:

Remove-RDPersonalVirtualDesktopAssignment : The specified virtual desktop has not been assigned to any user.

I know I can go ahead and create a new one but I'm wondering if anyone else has come across this before and knows how to fix it.  I hate creating a new one because VDI creates them sequentially and this leaves a gap in the names.  I also wonder if there is a way to tell VDI to create a new virtual desktop using a name that has been deleted.  

Thank you.


Viewing all articles
Browse latest Browse all 5613

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>