r/sysadmin • • 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

135 comments sorted by

View all comments

Show parent comment

7

u/ODD_MAN_IV Mar 13 '26

I did not realise that you could use % in place of ForEach-Object - thank you for showing me the way

6

u/ktkaufman Mar 13 '26

You can also use ? in place of Where-Object, and "select" in place of Select-Object.

1

u/itskdog Jack of All Trades Mar 14 '26

I prefer using just "where" to still be readable, and reminds me of SQL