【问题标题】:Get a list of Desktop names in XenDesktop获取 XenDesktop 中的桌面名称列表
【发布时间】:2016-02-16 18:19:44
【问题描述】:

我已经这样做了,但它没有给我想要的东西。

Get-BrokerDesktop -MaxRecordCount 1000 | select "DesktopGroupName" | Export-Csv c:\dektop_list

我只希望获得发布桌面的交付组。如果它是一个已发布的应用交付组,我不希望它包含在列表中。

提前致谢。

   $DG = Get-BrokerDesktopGroup
   foreach($item in $DG)
   {
      if (DeliveryType = "DesktopsOnly")
        {
            Add-Content C:\dektop_list.csv
        }
        else
        {
            Add-Content c:\application_delivery.csv
        }
        }

我收到一条错误消息,提示“DeliveryType:‘DeliveryType’一词未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,或者如果 路径已包含,请验证路径是否正确,然后重试。”

【问题讨论】:

  • $DG = Get-BrokerDesktopGroup -MaxRecordCount 10000 | Where-Object {$_.DeliveryType -like "Desktopsandapps" -and "DesktopsOnly"} |选择对象“PublishedName”这就是我要去的地方。但它没有找到 Desktopsandapps 和 DesktopsOnly
  • 这是最终命令 $DG = Get-BrokerDesktopGroup -MaxRecordCount 10000 | Where-Object {$_.DeliveryType -like "DesktopsOnly" -or $_.DeliveryType -like "DesktopsAndApps" } |选择对象“PublishedName”
  • 所以你还好吗?您的命令有效吗?如果有效,请更新答案并接受它...

标签: powershell citrix xendesktop


【解决方案1】:

这是最后的命令 $DG = Get-BrokerDesktopGroup -MaxRecordCount 10000 | Where-Object {$.DeliveryType -like "DesktopsOnly" -or $.DeliveryType -like "DesktopsAndApps" } |选择对象“PublishedName”

【讨论】:

    【解决方案2】:

    我已经搜索了该命令,以列出在 Web 门户中发布的用于桌面的实际名称。尽管是这样的命令,例如:

    Get-BrokerDesktopGroup | ? {$_.DeliveryType -match "Desktops"  } | Select -Property Name, PublishedName
    

    Get-BrokerDesktop | select DesktopGroupName, AssociatedUserNames | ft -AutoSize
    

    可用于列出分配给交付组的各种对象名称,我没有找到任何显示店面门户网站中显示的已发布名称。

    不过,希望以上内容对你们中的一些人来说已经足够了。

    享受,

    猪肉

    【讨论】:

      【解决方案3】:

      此命令将列出已发布的桌面:

      Get-BrokerEntitlementPolicyRule -Property Name, PublishedName

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-08-14
        • 1970-01-01
        • 2012-08-21
        • 2019-01-09
        • 2015-09-28
        • 2012-06-10
        • 1970-01-01
        • 2022-07-25
        相关资源
        最近更新 更多