Solved

Adding Proxy addresses to a Active Directory users creation script

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

832 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