How to create user mail Exchange 2016 RRS feed

  • Question

    • I am trying to create user mail Exchange 2016 using c# but i can not see any info to do it. I was google and seen some infomation to do it is only way to do this is via powershell but it's for Exchange 2010 + Client access server roles. Now in Exchange 2016 without CAS roles, i have no idea to do it.

       Any suggest for me ?

    Best rgds,

    Wednesday, January 3, 2018 4:02 PM

All replies

  • PowerShell. It's still available in Exchange 2016, in fact pretty much every operation you perform in the Exchange Admin Center runs PowerShell cmdlets on the backend. In your case, you can use the New-Mailbox or Enable-Mailbox cmdlets.
    Wednesday, January 3, 2018 8:18 PM
  • Phaivv,

    The mailbox role has what was the CAS role built in. As Vasil mentioned, you can use the New-Mailbox command from any Exchange Management Shell.



    Wednesday, January 3, 2018 8:24 PM
  • Thanks for response. So with Exchange 2016, i can still using C# to Remote PowerShell....

    some coding like this:


    Or do you have better refer above to do this.


    Thursday, January 4, 2018 2:57 AM
  • i mean, using coding C# to Create Mailbox on Exchange Server 2016 via something like this:

    Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConf);
    Pipeline pipeline = runspace.CreatePipeline();
    SecureString securePwd = StringToSecureString("Passw0rd1");
    Command newMailBox = new Command("New-Mailbox");
    newMailBox.Parameters.Add("Name", "TestName1");


    Thursday, January 4, 2018 3:02 AM
  • Yes, you can.
    Thursday, January 4, 2018 6:49 AM
  • Yes, you can.

    So do you have any coding refer?

    Exchange server has cert ssl, then how to verify it with cert file, pfx

    Thursday, January 4, 2018 12:25 PM