• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
XenDesktop Developer Network

Adding a user to an existing desktop group

This command adds users in all groups whose names match "GroupName" to an existing desktop group.

# get all the groups whose name matches 'GroupName' (should be just one)
# Note could also be written as:
# $grp = Get-XdDesktopGroup GroupName
$grp = Get-XdDesktopGroup | ? {$_.Name -match "GroupName" }
$Usr = New-XdUser "UserName"
$grp.Users.Add($Usr)
Set-XdDesktopGroup $grp

Tags

vdi vdi Delete
xendesktop powershell api xendesktop powershell api Delete
xendesktop sdk xendesktop sdk Delete
Enter tags to add to this page:
Please wait 
Looking for a tag? Just start typing.
Related Links