I decided to move to Powershell Studio and created a test form, I get the same blank combobox, what am I doing wrong?
The code in my original form:
Code: Select all
$handler_form1_Load=
{
$secgroups1 = Get-ADGroup -Filter 'GroupCategory -eq "Security"' | Select-Object -Expand name | sort-object
$secgroups1 = ," " + $secgroups1
$editusersecgroupentrybox.DataSource = $secgroups1
}
I tried to create a manual list of values to populate the combobox in my test form, again I got blanks so I don't understand where I'm going wrong.
I need to create a new form with multiple comboboxes displaying things like groups, user objects and a couple of manual lists but I seem to have hit a brick wall in my Powershell skills.