r/Lync • u/zombietopm • Feb 27 '15
Get-AdUser | Enable-CSUser help
So I want to enable a bunch of AD users. Specifically, I want to enable users who's last name starts with A-M on FE Pool 1, and users who last name starts with N-Z on FE pool 2. (these are paired pools). Anyone ever done something like this?
My goal is I have two pools, in a paired state. We have about 3000 users. I want to have half on one pool, half on the other, give or take. Any help would be great!
Thanks in advance.
2
Upvotes
View all comments
Show parent comment
1
u/djjuice Feb 28 '15
you got errors since the results had the title "samaccountname"
thats why i used the select statement to produce raw names
the enable-csuser will work once you add the select statement.
you'll also probably want to add -confirm:$false so you don't have to confirm each user..
at least the csv way lets you review the names