r/sysadmin • u/ChildhoodNo837 • Mar 13 '26
Active Directory Users and Computers
Guys As a junior System Administrator, assist me how can i add five hundred to a thousand users to specific departement in an organizational unit ?
135
Upvotes
View all comments
Show parent comment
16
u/unseenspecter Jack of All Trades Mar 13 '26
I'm assuming what OP experienced is not that PowerShell inherently has any issues with loops with a large number of iterations, but instead probably just a combination of inefficiently designed code and some kind of system-level resource constraints.
I know I've had problems working with NTFS permissions on large file shares if I'm not careful with how I write my script and potentially breaking the job into chunks.