We are needing to add batches of users to our active directory. I have this mostly working by using a spreadsheet to generate the appropriate DSADD commands in a batch file.
My problem is:
We need to remove these users from the 'Domain Users' group. If I do this manually from AD Users and Computers, 'Domain Users' is always the Primary group. I have to set something else as the "Primary Group" before removing Domain Users from the person's list. I have two other groups that they are in so this is not a problem.
Is there a way using a command line to change the Primary Group, and to remove a member from a group?
I looked into doing this with CSVDE but could not find a way to do this either.
We need to remove them from Domain Users since they are not using our domain for normal file / print access. These user entries are just to control access to a large Sharepoint site we are creating.
Thanks for any help!
My problem is:
We need to remove these users from the 'Domain Users' group. If I do this manually from AD Users and Computers, 'Domain Users' is always the Primary group. I have to set something else as the "Primary Group" before removing Domain Users from the person's list. I have two other groups that they are in so this is not a problem.
Is there a way using a command line to change the Primary Group, and to remove a member from a group?
I looked into doing this with CSVDE but could not find a way to do this either.
We need to remove them from Domain Users since they are not using our domain for normal file / print access. These user entries are just to control access to a large Sharepoint site we are creating.
Thanks for any help!