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
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.
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...
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