Solved

Add proxyaddresses to Distribution Groups

Posted on 2010-11-19
7
1,362 Views
Last Modified: 2012-05-10
Hi all,

I try to add additionnal proxyaddresses to Distribution group but nothing happens and i have no error. My command is:


Get-QADgroup -Service 'DC:389' -Identity "groupName" | Add-QADProxyAddress -Address 'addresse' -Type SMTP

Can you help me
0
Comment
Question by:makanzore
  • 3
  • 3
7 Comments
 
LVL 25

Expert Comment

by:Tony Johncock
ID: 34171269
Get-QADgroup is added by Quest's Activeroles Management Shell for AD, not native PowerShell commands - I assume you've added this?

http://www.quest.com/powershell/activeroles-server.aspx

Not sure if this will work, as I'm taking it from the manual (I don't have the tools installed):

$pw = read-host "Enter password" -AsSecureString

connect-QADService -service 'server.company.com:389' -ConnectionAccount 'company\administrator' -ConnectionPassword $pw

Get-QADgroup -Identity 'groupName' | Add-QADProxyAddress -Address 'address' -Type SMTP

Or possibly just Get-QADGroup 'Group' | Add-QADProxyAddress -Address 'smtp:address2@company.com'




0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 34171400
I am not sure I understood your request you just want to add an smtp address for the group ??

$DG = Get-DistributionGroup DGName
$DG .emailAddresses += "smtp:test123@domain.com"
Get-DistributionGroup DGName -emailAddresses $DG.emailAddresses
0
 

Author Comment

by:makanzore
ID: 34171404
The two solution don't work
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 49

Expert Comment

by:Akhater
ID: 34171408
my solution works I use it everyday

what error are you having
0
 
LVL 25

Expert Comment

by:Tony Johncock
ID: 34171421
I think he meant my two, Akh
0
 
LVL 49

Expert Comment

by:Akhater
ID: 34171427
sorry my bad i have a typo the last one should be set-DistributionGroup

$DG = Get-DistributionGroup DGName
$DG .emailAddresses += "smtp:test123@domain.com"
Set-DistributionGroup DGName -emailAddresses $DG.emailAddresses
0
 
LVL 25

Expert Comment

by:Tony Johncock
ID: 34171438
Lol...you are welcome, makanzore.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

680 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