Command Line To Lauch A Specific Outlook 16 Profile

Bob Collison
Bob Collison used Ask the Experts™
on
Hi Experts,

In Windows 10 Office 2016 what is the correct Command Line to launch a specific Outlook Profile?

The following advises that the command line argument is invalid.

"C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE" /profile “[Co-op Registrar]”

Thanks,
Bob C.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Developer
Fellow 2017
Most Valuable Expert 2018
Commented:
Hi Bob,
Two things come to mind: (1) Does the profile name really have the brackets in it? My guess is not, especially since those characters are not allowed in an Outlook user name. (2) It seems that you have "smart" quotes surrounding the profile name. My guess is that the command line doesn't like that. Assuming that I'm right about both issues, try this:

"C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE" /profile "Co-op Registrar"

Regards, Joe
Distinguished Expert 2017

Commented:
To Joe's point
C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE" /?

Look at how the /profile option is used
It might be /profile:"Co-op Registrar"

Double check the exact profile name.
Bob CollisonSystem Architect

Author

Commented:
Hi Experts,

Joe's solution worked although I'm not actually sure what was incorrect.

Thanks,
Bob C.
Distinguished Expert 2017

Commented:
Usually examples use brackets
/profile  [Profile]  to indicate that you need to replace  [profile] with the correct name of your profile
In your case, you left the brackets in which resulted in the error you received, outlook could not locate an existing profike name that contained brackets.
Things in help instruction for use of command line tools use [to define a variable that needs to be replaced as a whole]
Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018

Commented:
That's great news, Bob. Thanks for letting us know. Regards, Joe

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial