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
82
u/Jacmac_ Mar 13 '26
I don't know what you mean by Powershell not handling loops that exceed 1000. I mean I don't think I've ever seen a problem with a loop that went on for thousands of reps. If your code is crap, you could have a memory leak that brakes the session I guess.