question

GarethDavies-0557 avatar image
0 Votes"
GarethDavies-0557 asked RichMatheisen-8856 commented

Add blank line to top of combobox

I have a combobox showing all security groups in alphabetic order, the code used is:

 $groups = Get-ADGroup -Filter 'GroupCategory -eq "Security"' | Select-Object -Expand name | sort-object 
 $editusersecgroupentrybox.DataSource = $groups

This is part of a GUI used by the service desk to add users to groups.
I need to have the top line blank to prevent accidentally adding users to the first group in the list.
How can I add a blank line to the top of this?

windows-server-powershellwindows-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
1 Vote"
RichMatheisen-8856 answered RichMatheisen-8856 commented

You asked this on your previous post. I provided an answer (and an example) there.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.