I will make the most common first response: What have you tried and what were your results?

And the most common second response: Please post the relevant pieces of your code so we can help you with it. Please use the ‘Insert Code’ button. Please and thank you!

PLEASE READ BEFORE POSTING! Read if you're new to the PowerShell forum! PLEASE READ BEFORE POSTING! Read if you're new to the PowerShell forum!

473250fa-d6a8-4b16-87ba-2ea2f94b4384-Post-Code.png

Housekeeping aside, let’s see if we can get the conversation rolling. I would approach the problem in steps:

  1. Build a list of the groups

    1. Preferably dynamically, make a query that collects a list of groups that fit whatever criteria makes them the right ones to select from
    2. You can manually include the groups, but the long term maintenance will be a pain
  2. Figure out what kind of interface you want to use

    1. You mentioned a pop-up box with a series of checkboxes
    2. I’ve never done a pop-up box on top of an existing form, so can’t help you much with that, hopefully someone else can chime in
  3. Collect the selections as a variable

  4. Use a ForEach to run through the contents of the variable and add-adgroupmember ( Assuming you are on-premises AD and not AzureAD )

    1. The code syntax for AzureAD is slightly different, but the logic flow is the same

Do you have any of this already done?

@eric-schroeder