in our DC we have 2 exchange servers 2013
we have 2 exchange servers.
while creating Linked Mail box in the Exchange1 Web interface, I select the same exchange for mail box creation site. Then it works fine, I can later change master account in Exchange1 Maangement Shell.
Issue will be in the following scenario
I create linked mail box in the exchange1 server Web interface, while creating I select other exchange2 server as mail box creation target(I mean it creates mailbox in another exchange2 server).
After this I try to change Master account in the management shell of exchange server 1. It throws error
-----------------------------
$secpasswd=ConvertTo-SecureString "P@ssw0rd1" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential("TESTUSER\Administrator",$secpasswd)
Set-Mailbox -Identity:'testexch.local/CountyIssue/lmb2' -DomainController:'DC1.testexch.local' -LinkedDomainController:'Account.testuser.local' -LinkedCredential:$mycreds -LinkedMasterAccount:'testuser\MA54' -Confirm:$False -Force:$True
---------
Set-Mailbox
{Identity=testexch.local/lmb_OU/lmb2, DomainController=DC1.testexch.local, LinkedDomainController=Account.testuser.local, LinkedCredential=System.Management.Automation.PSCredential, LinkedMasterAccount=testuser.local/CountyIssue/MA54, Confirm=False, Force=True}
testexch.local/Users/Administrator
S-1-5-21-4234369167-21792470-2810238229-500
S-1-5-21-4234369167-21792470-2810238229-500
Remote-PowerShell-Unknown
7968 w3wp#MSExchangePowerShellAppPool
3
00:00:00.3906164
View Entire Forest: 'False', Default Scope: 'testexch.local', Configuration Domain Controller: 'DC1.testexch.local', Preferred Global Catalog: 'DC1.testexch.local', Preferred Domain Controllers: '{ DC1.testexch.local }'
Microsoft.Exchange.Configuration.CmdletProxyException: Error on proxy command 'Set-Mailbox -Identity:'testexch.local/lmb_OU/lmb2' -DomainController:'DC1.testexch.local' -LinkedDomainController:'Account.testuser.local' -LinkedCredential:'System.Management.Automation.PSCredential'
-LinkedMasterAccount:'testuser.local/CountyIssue/MA54' -Confirm:$False -Force:$True' to server WIN-AG2MPTI7C3D.testexch.local: Server version 15.00.0847, Proxy method RPS: Cannot process argument transformation on parameter 'LinkedCredential'. Cannot convert
the "System.Management.Automation.PSCredential" value of type "System.String" to type "System.Management.Automation.PSCredential".. at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory,
Object target, String helpUrl) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(LocalizedException exception, ExchangeErrorCategory
category, Object target) at Microsoft.Exchange.Configuration.Tasks.ProxyModule.ProxyCmdletExecution(CmdletProxyInfo cmdletProxyInfo) at Microsoft.Exchange.Configuration.Tasks.ProxyModule.ProxyCmdlet(CmdletProxyInfo cmdletProxyInfo) at Microsoft.Exchange.Configuration.Tasks.ProxyModule.ProxyCmdletOnException(Object
sender, GenericEventArg`1 e) at Microsoft.Exchange.Configuration.Tasks.CriticalFeatureHelper.Execute(ICriticalFeature feature, Action action, TaskContext taskContext, String methodNameInLog) at Microsoft.Exchange.Configuration.Tasks.TaskEvent.ExecuteEventHandler[T](T
e, Delegate handler) at Microsoft.Exchange.Configuration.Tasks.TaskEvent.TriggerEvent[T](EventHandler`1 eventHandler, T e, Boolean inReversedOrder) at Microsoft.Exchange.Configuration.Tasks.Task.ProcessError(Exception exception, Boolean terminating) at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
ServerOperation
False
1 objects execution has been proxied to remote server.
0
ActivityId: 962a00e2-96a3-4d9a-bc35-02a9ae3cd51b
ServicePlan:;IsAdmin:True;
en-US
-----------------------------
Thanks, Harish