Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PutEx - add\remove or just replace

Posted on 2010-09-17
1
Medium Priority
?
1,000 Views
Last Modified: 2012-05-10
I'm writing some scripts that will update some distribution groups.  In these scripts I'm generating an array that has all the DN's of the correct list of members and then comparing that with the current membership of the group.  Some of these groups are VERY large, as in well over 1,500 members.  The goal being to make the group membership match the 'correct' list that I generate originally.

My question is with PutEx and the efficiency from an Active Directory perspective with regards to using the add\remove operations of PutEx (3 and 4) vs. just replacing the entire membership (2).

Is there such a big different in efficiency (and perhaps replication) if I'm editing large lists where I should use the add\remove operations vs. just using replace?
0
Comment
Question by:evetsleep
1 Comment
 
LVL 71

Accepted Solution

by:
Chris Dent earned 2000 total points
ID: 33723363

Depending on the functional level of your forest (at least 2003), and the operational level of the group (not all groups have this enabled, depends when the group was created). But in theory, PutEx 3 / 4 should be far more efficient than replacing the entire list.

This is making a few assumptions about the efficiency of LVR (Linked Value Replication) when the majority of the contents do not change, but it's about the only aspect that's going to come into play here.

If your functional level is lower then the entire member attribute will replicate regardless of the number of changes. If LVR is in operation it should only replicate the change to the attribute (not the entire attribute).

HTH

Chris
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief introduction to what I consider to be the best editor for PowerShell.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Loops Section Overview
Screencast - Getting to Know the Pipeline

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question