Move a user to new group and make it as primary



I'm new to this scripting. I wrote a script to do the following.
1) Create user in AD
2) Add it into group MSC
3) and make MSC as primary group for new User
4) Remove user from Domain User group

But I found out bug in script after I ran the script. Now, all the new
users are created in MSC container and Users are not memeber of MSC

Now, how can I write a script to do the following...
1) Add users in MSC group
2) Make MSC as primary
3) Remove the Domain users.

Since users are created MSC container, Now I'm not able to add it into

Thanks for you help in advance.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question