Author Posts

September 11, 2014 at 11:29 am

I would like to get group membership from certain groups run against User OU. Is it possible to set the group and User OU mandatory so it prompts the user for which groups they want and which User OU to search membership against?

September 11, 2014 at 11:42 am

You can't modify the actual Get-ADGroup cmdlet to make parameters mandatory if they're not mandatory already, but what you can do is write a function which has the parameter behavior you want, and call Get-ADGroup from within that function.