Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 5 of 5

Thread: Powershell - Need assistance!

  1. #1

    Default Powershell - Need assistance!

    Software seems like the best fit for this...

    In Exchange 2010 I have 900+ mail contacts. Recently I migrated from Exchange 2003 and all of these contacts now need to have their SMTP address set as their primary reply, and this somehow was lost during the migration. All the required information is in each mail contact and all I have to do it open the contact, accept a prompt, and Set As Reply on the smtp address that is already there..

    This is what I have done in my powershell script which has worked on 1 user:

    Code:
    set-mailcontact -alias "alias" -emailaddresses 'SMTP:user@company.co.za'
    My question is, how can I apply a similar script to a large amount of users that each have different Aliases and Different SMTP addresses? The aliases do not match the SMTP address, but ALL aliases start with debtors and then a number. eg debtors4921

    I figure I could run
    Code:
    -alias "debtors*" -emailaddresses 'SMTP:
    , but for the SMTP setting, how could I get the command to grab the SMTP information from within the specified alias?

    I really don't want to manually click into each of the 900+ contacts...
    Rise, in honour of Reason.

  2. #2

    Default

    You can do this via an Email address policy - This does it automatically for the contacts.

  3. #3

    Default

    Quote Originally Posted by sidai View Post
    You can do this via an Email address policy - This does it automatically for the contacts.
    Can you explain further?
    Rise, in honour of Reason.

  4. #4

    Default

    Here is what I am dealing with:



    The external and SMTP are the same, but it is not primary. I would like an automated way of making the top address the 'Primary SMTP Address'. I need to apply it to a lot of contacts.
    Rise, in honour of Reason.

  5. #5

    Default

    If I understand it correctly, your domain is like:

    mydomain.co.za

    you want the following to happen;
    debtors2341 to change to debtors2341@mydomain.co.za

    if so then;

    In exchange management console, do the following:

    1. Under "Organization Configuration" > "Hub Transport"
    Click the "E-mail Address policies"
    On the right side(bar), click "New E-mail address policy"

    2. Give the policy a name, debtors or something.
    Click "the following specific types:"
    Select "Contacts with external e-mail addresses"
    Click "Next"

    3. Make sure nothing is selected under "conditions" unless you want to add something.
    Click on "preview", just to check it's the contacts you wish to change.
    Click "next" if you are happy.

    4 Click the "add" button.
    Leave on "Use alias"
    Specify domain "leave as your primary"


    Hope this helps?

Similar Threads

  1. Do you think it's worthwhile learning Powershell?
    By TheGuy in forum Network Admins
    Replies: 4
    Last Post: 21-06-2012, 01:14 PM
  2. Assistance please
    By Gerrit377 in forum Off Topic
    Replies: 11
    Last Post: 05-10-2011, 11:31 AM
  3. Windows 7 Powershell
    By ph4t3 in forum Software
    Replies: 16
    Last Post: 11-11-2009, 10:57 AM
  4. PowerShell 1.0
    By theStudent in forum PC Hardware and Gadgets
    Replies: 5
    Last Post: 27-12-2007, 09:20 AM
  5. Windows Powershell released (Formerly known as Monad)
    By Crash in forum PC Hardware and Gadgets
    Replies: 1
    Last Post: 18-05-2006, 09:30 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •