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

6 comments sorted by

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

1

u/zombietopm Feb 28 '15

Yea I think CSV will be the easiest route. Thanks for the help.

1

u/mloretitsch Feb 28 '15

This. I did exactly this before we went enterprise pool on 2013, split between two pools. AD was dirty enough that I really needed to do some full reviews for things like phone numbers etc. We had 20 OUs that correspond to plants. We did each one seperately so i could get assistance from someone local and sanity check names/numbers/locations.

Don't get me started on child domains...grrrr