TechPedia

RSS Feed

Tech tips, tricks and tidbits!

Rename an Entourage Exchange account or domain using Applescript

November 15th, 2006 · No Comments

I recently had the need to automate the taks of renaming both the Exchange account name and domain name for a few dozen remote users. As opposed to writing up directions and risking that they a)wouldn’t do it or b)would make a mistake, I opted to go the route of making it easy for them.

Here’s the script used to:

  • open, then set Entourage to offline
  • rename the account
  • rename the domain
  • bring Entourage back online
  • Hope this helps!

    –THIS SCRIPT RENAMES THE DOMAIN IN AN ENTOURAGE EXCHANGE ACCOUNT

    tell application “Microsoft Entourage”

    set acname to “Exchange”
    set domname to “whatever”

    –set entourage to work offline
    set working offline to true

    –rename the account to ‘exchange’
    if the name of the default mail account is not acname then
    set the name of the default mail account to acname
    end if

    –rename the domain to ‘whatever’
    if the domain of Exchange account acname is not domname then
    set the domain of Exchange account acname to domname
    end if

    –bring entourage back online
    set working offline to false

    end tell

    Tags:

    0 comments for this entry ↓

    • There are no comments yet for this entry.

    You must log in to post a comment.

    • Sponsors



      Password Manager and Form Filler for Mac OS X