Title: Re: Scripting Account Setup.
You have to use Applescript. The best option would be to set up a dummy account than change that to suit your environment. This is actually recommended by MS.
Below is the script I'm working on. It's called up by a launchagent, then the launchagent is deleted after setup is complete.
The script itself doesn't work however, it stops at the point where its supposed to change the dummy account, so some help would be nice.

--check if the account has an email address using dscl

set userName to do shell script "whoami"
set fullName to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER displayName | sed 's/displayName: //' "
set eMailAddress to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER EMailAddress | sed 's/EMailAddress: //' "

--edit the dummy account

if userName ≠ "EmailAddress: " then
   tell application "Microsoft Entourage"
        set Exchange account "CSBSJU" to {email address:eMailAddress, domain:"AD", full name:fullName, Exchange ID:userName}
    end tell
end
if


On 4/25/06 5:24 AM, "Toby Boardman" <[EMAIL PROTECTED]> wrote:

>
>     I have need to change a large number of entourage setups across multiple
> sites. Does anyone know of a way to script the entourage accounts setup?
> Preferably using shell script.
>
>
> Sincerely

Reply via email to