add or remove an AD groups attribute

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Tony Rodal Tony Rodal 2 weeks ago.

  • Author
    Posts
  • #58213
    Profile photo of Tony Rodal
    Tony Rodal
    Participant

    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
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    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
    Profile photo of Tony Rodal
    Tony Rodal
    Participant

    Awesome. Thanks Rob!!

You must be logged in to reply to this topic.