Solved

Adding Proxy addresses to a Active Directory users creation script

Posted on 2015-02-02
4
51 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 24

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 24

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 24

Author Closing Comment

by:Mohammed Hamada
ID: 41378567
Self Solved
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

838 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