Solved

PutEx - add\remove or just replace

Posted on 2010-09-17
1
975 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 70

Accepted Solution

by:
Chris Dent earned 500 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now