Avatar of pramod1
pramod1
Flag for United States of America asked on

ACTIVE DIRECTORY

I need to update one attribute (LOCATION)  of users in active directory

but there are 1000 users and I want to do 200 in a batch

is there any script I can use so that 200 users get their attribute updated in a batch
Active Directory

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
Abhilash Pappiyil

Hi,

If you are happy to use it to run as a logon script, you can create a gpo then add the script as a logon script. You can create a security group and add the first batch of 200 users in the security group, then add that security group in the security filtering of the gpo, so that it will be applied to those users only.

thanks
Shaun Vermaak

Jeremy Weisinger

Why do you want to do it in batches of 200? Since this is just updating an attribute in AD, it should be able to be done with minimal load and in less than a minute.

Can you tell us the criteria around this change? e.g. only 1000 out of 20,000 are being changed? Will every user be changed to the same location? etc...
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Shaun Vermaak

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.