Solved

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

Posted on 2008-10-07
3
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

636 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