Solved

Adding Proxy addresses to a Active Directory users creation script

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

Featured Post

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.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
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…

862 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

25 Experts available now in Live!

Get 1:1 Help Now