As a new PS type, it’s vital that you get yourself up to speed with all the
no cost ebook resource on this site, video training on
'https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-3-0-jump-start-8276'
'https://mva.microsoft.com/training-topics/powershell'
'https://channel9.msdn.com/Series/GetStartedPowerShell3'
'https://channel9.msdn.com/tags/PowerShell'
https://www.youtube.com/results?search_query=beginning+powershell
Then grab yourself a copy of all the free eBooks on this site and these:
'https://www.amazon.com/Learn-Windows-PowerShell-Month-Lunches/dp/1617294160/ref=sr_1_1?ie=UTF8&qid=1533712412&sr=8-1&keywords=learn+powershell+in+a+month+of+lunches+3rd+edition'
‘https://www.amazon.com/Windows-PowerShell-Action-Second-Payette/dp/1935182137/ref=sr_1_sc_1?ie=UTF8&qid=1533712434&sr=8-1-spell&keywords=oershell+in+actio’
‘https://www.amazon.com/Windows-PowerShell-Cookbook-Scripting-Microsofts/dp/1449320686/ref=sr_1_3?ie=UTF8&qid=1533712461&sr=8-3&keywords=powershell+cookbook’
What you are getting is what you asked PS to do. 8^)
Your issue here as you’ve posted. These are completely two separate command, with what you show as no property or value that could relate them together.
You don’t say what optiosn you tried and what the results were.
You don’t say how you want the final results of this to look like.
So, that leaves us to guess.
If you are saying that you want a csv of these individual data sets to look like this…
"Deliverytype","Name","TotalApplications","TotalDesktops","ApplicationName", "AssociatedUserFullNames","ClientFolder","CommandLineExecutable"
"SomeDeliverytype","SomeName","CountOfTotalApplications","CountOfTotalDesktops","SomeApplicationName", "SomeAssociatedUserFullNames","SomeClientFolder","SomeCommandLineExecutable"
"SomeDeliverytype","SomeName","CountOfTotalApplications","CountOfTotalDesktops","SomeApplicationName", "SomeAssociatedUserFullNames","SomeClientFolder","SomeCommandLineExecutable"
"SomeDeliverytype","SomeName","CountOfTotalApplications","CountOfTotalDesktops","SomeApplicationName", "SomeAssociatedUserFullNames","SomeClientFolder","SomeCommandLineExecutable"
...
Then you have to iterate ove each dataset, line by line and join them. I’ve no way to test this as I do not use Citrix. However, in most cases if you can iterate, you can join on each pass
# Collect your dataset
$BrokerDesktopgroup = Get-BrokerDesktopgroup | Select Deliverytype,Name,TotalApplications,TotalDesktops
$BrokerApplication = Get-BrokerApplication | Select ApplicationName, AssociatedUserFullNames,ClientFolder,CommandLineExecutable
# Loop thru BrokerDesktopgroup and join data with BrokerApplication.
Yet where to join them?
Why join them?
Again, I am not a Citrx guy. Yet, data is data.
Looking at the Ctrix PS cmdlet docs, says…
-- Name (System.String)
Unique administrative name of application.
Notes
Get-BrokerApplication returns just the application object, and as such is not a complete picture. The returned objects do not tell you what File-Type Associations are configured for this application, etc.
Use the following cmdlets to gather data related to applications (shown with examples of syntax):
Get-BrokerDesktopGroup -ApplicationUid $app.Uid
Citrix Virtual Apps and Desktops 7 2308
$BrokerDesktopgroup = Get-BrokerDesktopgroup | Select Deliverytype,Name,TotalApplications,TotalDesktops,ApplicationUid
$BrokerApplication = Get-BrokerApplication | Select ApplicationName, AssociatedUserFullNames,ClientFolder,CommandLineExecutable,Uid
So, this appears to get you the join point, but you have to decide which comes first and what you want the outcome to be.