I've done this but its not giving me what I want.
Get-BrokerDesktop -MaxRecordCount 1000 | select "DesktopGroupName" | Export-Csv c:\dektop_list
I'm only looking to get Delivery Groups that publish desktops. If its a published app delivery group I dont want it included in the list.
Thanks in advance.
$DG = Get-BrokerDesktopGroup
foreach($item in $DG)
{
if (DeliveryType = "DesktopsOnly")
{
Add-Content C:\dektop_list.csv
}
else
{
Add-Content c:\application_delivery.csv
}
}
I get an error on this that says"DeliveryType : The term 'DeliveryType' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
This command will list Published Desktops:
Get-BrokerEntitlementPolicyRule -Property Name, PublishedName