Solved

Adding Proxy addresses to a Active Directory users creation script

Posted on 2015-02-02
4
69 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Here's a look at newsworthy articles and community happenings during the last month.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

628 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