Solved

Adding a contact to a group using the "Net Group" command

Posted on 2008-10-07
3
284 Views
Last Modified: 2008-10-14
I have a script we use to add users to our DL's.
Net Group groupname Username /Add /Domain

I need to have an external person added to a DL. I thought I could create a "Contact" in AD and then use the "Net Group" command to add that contact to the DL. Is this possible? Has anyone done it successfully?
0
Comment
Question by:ubsoc
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Shmoid
ID: 22663081
Unfortunately, NET GROUP does not recognize an e-mail address, contact display name, nor contact alias. As you know the NET GROUP command expects a username. Because of this I dont think you can use NET GROUP the way you want to with just a contact.

The only way I know of to make it work (but I dont recommend it) is to create a user, but do not create an Exchange mailbox. Once the user is created you can mail enable it, putting in the external e-mail address.

Now you have an actual username to use with NET GROUP but you also have a user account in your AD that really shouldnt be there. You can give the user no rights, make sure the password is strong, you can even disable the account but youd still wind up with a lot of user accounts that are really just contacts. No one is using them no one is monitoring them and it seems like an unnecessary risk. I'm not sure why I say that, it just "feels bad". There are probably plenty of other reasons, besides security, not to create user accounts that are not really users but Ill leave that to somebody else to expand on.

Im guessing that since you are wanting to use a script to add contacts to a distribution list that you are also automating the creation of user/contacts. Otherwise you would simply click the member of tab while creating the external contact and add the appropriate DL. Is that correct?  Perhaps a little more detail about your current method and what you are trying to accomplish will yield a different solution.
0
 
LVL 5

Author Comment

by:ubsoc
ID: 22663180
Your answer is pretty much what I thought. I was just looking for someone to confirm what I thought. We use scripts to repopulate our "Big" DL's everynight from system extracts. Sometimes we need to override the extracts and add people that don't normally get into these extracts.
We use the Net Group method in our scripts and it works perfectly for what we do.
0
 
LVL 8

Accepted Solution

by:
Shmoid earned 500 total points
ID: 22663223
Sorry I couldn't give you the, "Oh sure, just do this" answer.    :-)

I looked around a bit and couldn't find anything else on NET GROUP for external addresses. If you find anything I'd be interested as well.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question