add or remove an AD groups attribute

Welcome Forums General PowerShell Q&A add or remove an AD groups attribute

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

 
Participant
1 year, 11 months ago.

  • Author
    Posts
  • #58213

    Participant
    Points: 0
    Rank: Member

    Hi I'm trying to modify the Edmpolicy attribute for an Active Directory group. How can I add or remove say for example "Software/75_dot_net" Thanks for any help in advance.

  • #58216

    Participant
    Points: 0
    Rank: Member

    Assuming you can use ActiveDirectory module, something like this...

    Set-ADGroup -Identity GROUP_NAME -Add @{"Edmpolicy"="Software/75_dot_net"}
    Set-ADGroup -Identity GROUP_NAME -Replace @{"Edmpolicy"="Software/75_dot_net"}
    Set-ADGroup -Identity GROUP_NAME -Clear Edmpolicy
    
  • #58220

    Participant
    Points: 0
    Rank: Member

    Awesome. Thanks Rob!!

The topic ‘add or remove an AD groups attribute’ is closed to new replies.