Solved

Adding Proxy addresses to a Active Directory users creation script

Posted on 2015-02-02
4
37 Views
Last Modified: 2015-12-20
Hello everyone,

I need to add field for proxy addresses (3 fields where I can enter more than one SMTP) in an already existing powershell which creates AD users with a GUI provided by a Microsoft expert. I know a little bit about Powershell but not when it comes to editing a long script like this one. Please see the link below for the powershell script.

https://gallery.technet.microsoft.com/scriptcenter/New-User-Creation-tool-14fa73cd

I would appreciate any help with this.

Thanks
0
Comment
Question by:Mohammed Hamada
  • 3
4 Comments
 
LVL 3

Expert Comment

by:Rezwan Islam
ID: 40585280
Hi,
You can try using a simple csv import and running your one line script on it. You will need to use Quest AD shell for this.

Import-Csv "drive:\location.csv | foreach {Get-QADobject $_.usermailbox} | Add-QADProxyAddress -Address $_.ProxyAddressToAdd | Add-QADProxyAddress -Address $_.ProxyAddressToAdd2

Just need to modify your columns on the csv file accordingly e.g. usermailbox, ProxyAddressToAdd and ProxyAddressToAdd2.

Alternatively, if you want to add per user from command line you can try this example from powerqui.org,

Get-QADUser company\jsmith |      
 Add-QADProxyAddress -Address 'smtp:jsmith@company.com' |      
 Add-QADProxyAddress -Type SMTP -Address 'john.smith@company.com' -Primary |      
 Add-QADProxyAddress -CustomType 'sip' -Address 'john.smith@company.com'

for details please go to http://wiki.powergui.org/index.php/Add-QADProxyAddress. Hope this helps.
0
 
LVL 23

Author Comment

by:Mohammed Hamada
ID: 40585740
Hi Rezwan, thanks a lot but I can personally do it with powershell but the command is not for me but rather for a client who keeps creating users very often and needs to use the GUI instead of powershell.

plus I think the quest AD is no longer free!

I would appreciate if anyone could help me add the proxy part to the GUI powershell script.
Thanks
0
 
LVL 23

Accepted Solution

by:
Mohammed Hamada earned 0 total points
ID: 41372231
I found two solutions after my last comment that did the trick
1- ADmodify.
2- ADUCAdmin.

Admodify works perfectly without using powershell .. it's GUI based tool
0
 
LVL 23

Author Closing Comment

by:Mohammed Hamada
ID: 41378567
Self Solved
0

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
how to add IIS SMTP to handle application/Scanner relays into office 365.

762 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

22 Experts available now in Live!

Get 1:1 Help Now