Get-ADGroup Help

Welcome Forums General PowerShell Q&A Get-ADGroup Help

This topic contains 1 reply, has 2 voices, and was last updated by

 
Member
4 years, 3 months ago.

  • Author
    Posts
  • #18736

    Participant
    Points: 0
    Rank: Member

    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?

  • #18737

    Member
    Points: 0
    Rank: Member

    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.

The topic ‘Get-ADGroup Help’ is closed to new replies.