Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Set-Mailbox and New-Mailbox cmdlets prevent the use of the -Office parameter in Exchange Server 2016


View products that this article applies to.

Symptoms

You can no longer use the -Office switch in combination with the New-Mailbox and the Set-Mailbox cmdlets in Microsoft Exchange Server 2016.

Additionally, you will receive an error message in PowerShell that's similar to the following:
Set-Mailbox <Mailbox> -Office "Test"
Cannot convert 'System.String' to the type 'System.Management.Automation.SwitchParameter' required by parameter 'OfficeGraph'.
At C:\Users\totoni\AppData\Local\Temp\tmp_0ajtxi22.ylz\tmp_0ajtxi22.ylz.psm1:54428 char:9
+ $steppablePipeline.End()
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Exchange.Management.RecipientTasks.SetMailbox
Set-Mailbox <Mailbox> -OfficeGraph -Office "Test"
Cannot bind parameter because parameter 'Office' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3".
At C:\Users\totoni\AppData\Local\Temp\tmp_0ajtxi22.ylz\tmp_0ajtxi22.ylz.psm1:54428 char:9
+ $steppablePipeline.End()
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : ParameterAlreadyBound,Microsoft.Exchange.Management.RecipientTasks.SetMailbox

↑ Back to the top


Resolution

To fix this issue, install Cumulative Update 4 for Exchange Server 2016 or a later cumulative update for Exchange Server 2016.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

Learn about the terminology that Microsoft uses to describe software updates.

↑ Back to the top


Keywords: kbqfe, kbsurveynew, kbfix, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 3201358
Revision : 1
Created on : 1/7/2017
Published on : 12/13/2016
Exists online : False
Views : 244