Outlook Profile Auto Creation

Posted on 2006-04-15
Last Modified: 2008-02-01
I have been trying to find a way to auto generate the creation of Outlook profiles by logging on to a computer rather than visiting a 1000 users individually.  

I've looked at newprof, several programs that create profiles on the fly, and many other scripts.  But all of them require and use this:

MailboxName=%UserName%  they obtain the username from the logon ID of the person accessing the system.  This is then sent to profile creation and I get an error.  Unable to create profile, profile does not exist.  

I check the exchange account, which is exchange server 2003, and noticed we use an alias.  So if the user logons on with T111, this is being based to the %UserName%.  Not the alias, which is last name, first name.

Thus, none of the profile creation scripts work.

Any ideas, thoughts etc.?  I checked and found that the logon accounts are correctly tied to the alias, otherwise you couldn't create the profile in the first place.

Question by:dgore1
    LVL 26

    Expert Comment

    never used any of these products...most places i work no more than 3 users...but
    a few facts for u .....
    when u create a user first name display name and initials....that becomes the
    display name which in return becomes the mailbox name....
    logon name becomes the ALIAS which also becomes the default email address....
    %userName% is tied to user logon name(Alias)....not the mailbox name unless both are trhe same....
    so maybe u should use mailboxname=%DisplayName%....
    LVL 26

    Expert Comment

    sorry i meant to write first name LAST NAME (not display name)

    Author Comment

    Well, in our case, they aren't gonna change it.  So, when you write a script that uses %username% the logon id is passed to the profile creation...thus it can't authenticate to exchange.

    When I watch the process happen, you can see the value being processed in the profile creation as the logon id, not the alias which is lastname, firstname.

    I just need to know if there is another variable that allows me to pass the alias portion.
    LVL 8

    Accepted Solution

    Not sure if this will help but as far as i know it should pick up the other detials from the user name, the program is called richprofile:


    Dave J

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
    In this video we show how to create an Accepted Domain 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 >> Ac…

    758 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now