Forum Discussion

Rajdasit1530's avatar
Rajdasit1530
Copper Contributor
Jan 18, 2020

How do you assign App/Desktop Groups to a AD group instead of individuals users?

Is this not available? How do you manage 100+ users? 

4 Replies

  • knowlite's avatar
    knowlite
    Iron Contributor

    Regarding management of the desktop pool, Microsoft has a mgmt module available on their Github page:

    https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-management-ux

     

    For adding/removing users, PowerShell is your friend (until the management page is released), written a short script for you based on the cmdlet here:
    https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/add-rdsappgroupuser

    Add-RDsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
    $Users = Get-Content .\Users.txt
    $WVDTenantName = "Type your tenant name here"
    $HostPoolName = "Type your host pool name here"
    $DesktopUserGroup = "Type your Desktop user group name here"
    Foreach($User in $Users){
    Add-RdsAppGroupUser -TenantName $WVDTenantName -HostPoolName $HostPoolName -AppGroupName $DesktopUserGroup -UserPrincipalName $User
    }

    • RajDasIT's avatar
      RajDasIT
      Copper Contributor
      Nice. I wonder if there's a way to pull the user list directly from an AD group. But this gives me hope. Thank you.
      • knowlite's avatar
        knowlite
        Iron Contributor
        Check the scripts written by Travis Roberts (Ciraltos):
        https://github.com/tsrob50/WVD-Public

        He has scripts to do this (AddAppUsers-FromADGroup.ps1)
        PS: check out his videos too, very informative!

Resources