New-Mailbox Powershell Command

We're in the process of deploying orchestrator to create new users\mailboxes.  Everything was working fine in our test environment through the End of January 2015.  Trying to create some new test users today and received a rather strange error:

PowerShell invoke error: Cannot process command because of one or more missing mandatory parameters: Room

Troubleshooting this I tried to manually run the PowerShell command that Orchestrator was running:

New-Mailbox -Alias p015test -Name "Testerson, Evan" -UserPrincipalName "p015test@xxx.com" -Database "Mailboxes" -DisplayName "Testerson, Evan" -FirstName "Evan" -LastName "Testerson" -Office "Atlanta" -OranizationalUnit "OU=Employees,OU=OurUsers,DC=Child,DC=Parent,dc=com"

And was promptly prompted to supply the values for the mandatory attribute "Room"

I then re-ran the command without the "Office" parameter, and that was successful.

Help (Both TechNet and Get-Help) says

Office

Optional

System.String

The Office parameter specifies the Microsoft Office attribute for this mailbox.

March 11th, 2015 4:09pm

whoops posted to quick.

Did I miss a patch note or something?  Any Idea how to actually put in the "physicalDeliveryOfficeName" attribute now that the -office switch is apparently making a Room mailbox?

Thanks

Dave

Free Windows Admin Tool Kit Click here and download it now
March 11th, 2015 4:12pm

Hi Dave,

Based on my test (using Exchange 2013 server), the Office parameter can only be used when creating a room mailbox. For example, if I run the New-Mailbox -Alias test1 -Office Wuxi -Name test1 -Room cmdlet, it will create a room mailbox named test1, and the Location is Wuxi.

Hope my clarification can be helpful.

Best regards,

March 12th, 2015 2:08am

Hi Dave,

Is there any update with your issue?

Best regards,

Free Windows Admin Tool Kit Click here and download it now
March 16th, 2015 10:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics