Microsoft Exchange 2010 AFX Connector Enable-mailbox command fails with 'Value cannot be null' in RSA Identity Governance & Lifecycle
2 years ago
Originally Published: 2019-10-29
Article Number
000042468
Applies To
RSA Product Set: Identity Governance & Lifecycle
RSA Version/Condition: All
Issue
When testing the Enable-mailbox command of a Microsoft Exchange 2010 AFX Connector using Test Connector Capabilities (AFX > Connectors > {connector-name} > Test Connector Capabilities), the following error message displays in the user interface:
 
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>&1 | Write-Host; if($?) {Enable-Mailbox '${Identity}' 2>&1 | Write-Host;}
Total number of processing errors = 1 Iteration 0 Parameter Name Value Identity user.test Error code = 1
Failed Cause: Enable-Mailbox : Value cannot be null. Parameter name: serverSettings At line:1 char:102 + Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>&1 | Write-Host ; if($?) {Enable-Mailbox <<<< 'user.test' 2>&1 | Write-Host;} + CategoryInfo : NotSpecified: (:) [Enable-Mailbox], ArgumentNull Exception + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Exchange. Management.RecipientTasks.EnableMailbox
Cause
This error occurs when Powershell has not been configured correctly.
Resolution
NOTE: This problem and resolution have only been verified using the Microsoft Exchange 2010 AFX connector.

When configuring the PowerShell Server, uncheck the Enable Impersonation box.
 
User-added image