Want to create a default outlook account in windows server 2019

Anvay Singh 41 Reputation points
2022-03-09T09:43:59.12+00:00

I have a requirement where I want to create a outlook default profile through cmd.

I used outlook.exe /PIM Default

which is fine, but it also automatically open up the outlook GUI.

Is there any flag or any other way by which I can create an outlook profile without outlook GUI opening up?

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,072 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Faery Fu-MSFT 18,526 Reputation points Microsoft Vendor
    2022-03-10T02:41:17.923+00:00

    Hi @Anvay Singh ,

    Welcome to our forum and posting your question here.

    It is recommended you create an Outlook profile from Control Panel.

    1. Go to Control Panel > Mail > Show Profiles
    2. Add a new profile name, if you want to set it as the default, select "Always use this profile"
      181701-capture.png

    If the answer is helpful, please click "Accept Answer", this will make answer searching in the forum easier and be beneficial to other community members as well.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


  2. Limitless Technology 39,511 Reputation points
    2022-03-15T14:56:26.613+00:00

    Hi @Anvay Singh

    There's no way to perform this action via cmd silently without opening up Outlook.

    I do hope this answers your question.

    Thanks.

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Faery Fu-MSFT 18,526 Reputation points Microsoft Vendor
    2022-03-16T06:31:07.4+00:00

    Hi @Anvay Singh ,

    I'm sorry for misunderstanding your needs.
    According to my test, you can add profile into registry via command, run the following command:

    reg add HKCU\Software\Microsoft\Office\16.0\Outlook\Profiles\<name>  
    reg add "HKCU\Software\Microsoft\Office\16.0\Outlook" /v DefaultProfile /t REG_SZ /d "<name>" /F  
    

    183506-cmd.jpg

    When I open outlook, it shows as the default profile.

    183591-default.jpg


    If you think my answer is helpful, please kindly "Accept Answer" to thelp others with the same problem.


  4. RH-8125 111 Reputation points
    2023-01-06T19:08:04.423+00:00

    I just went through this myself and documented my findings, which hopefully will be of use: https://learn.microsoft.com/en-us/answers/questions/1154958/how-to-create-a-blank-34no-email34-outlook-365-pro.html.

    In short, I didn't find a way to automate it completely, but after ProcMon sessions/etc., I documented the registry settings that seem to be at play. It doesn't appear to be possible short of some more involved scripting effort (reading in some variable data, writing binary registry values, etc.).

    0 comments No comments