Script to create distribution group out of every AD user and more...

Author Message
fable

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 1/20/2011
  • Status: offline
Script to create distribution group out of every AD user and more... Thursday, January 20, 2011 4:36 PM (permalink)
0
Hello everyone, 

I posted this in the VBS forum but I thought I should post here too in case I can accomplish the same things with PowerShell as well:

Here's the scenario: 

I have the x.com domain. What I need to accomplish is: 

1. Create a universal distribution group out of every AD user. Set the name of each group to be the same as the "Display Name" of its respective user. Put all the Dist. Groups in an OU (e.g. "Groups" OU) 
2. Set the email address of each dist. group the same as the email address of its respective user but change the domain to y.com. For example, if in AD the user Fable Smith had an email address of fsmith@x.com this user's dist group email address will have to be fsmith@y.com
3. Make each user a member of its dist. group. 

As I said on my other post, I know you are probably thinking "Why would you ever want to do that"? Unfortunately I do and It is to accomplish a very specific goal. 

Any help would be really appreciated!
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9