Solved

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

Posted on 2008-10-07
3
282 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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now