Skip to content

Instantly share code, notes, and snippets.

@alainassaf
Created Feb 7, 2017
Embed
What would you like to do?
Code Snippet 2 from run-delprof2.ps1
$workergroups = Get-XAWorkerGroup -ComputerName $xmlbroker | select WorkerGroupname | sort -Property workergroupname
# These 2 statements are far apart in the actual script, but together here for illustration
foreach ($wg in $workergroups) {
[void] $objListBox.Items.Add($wg.WorkerGroupName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment