[Last Call] Learn how to a build a cloud-first strategyRegister Now


Outlook Profile Auto Creation

Posted on 2006-04-15
Medium Priority
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
  • 2
LVL 26

Expert Comment

ID: 16461599
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

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

Author Comment

ID: 16462419
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.

Accepted Solution

oldhammbc earned 2000 total points
ID: 16476796
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

829 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