Article ID: 2589982 - View products that this article applies to.
Consider the following scenario:
WARNING: The cmdlet extension agent with the index Number has thrown an exception in OnComplete(). The exception is:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Exchange.Configuration.MonadDataProvider.MonadCommand.set_CommandType(CommandType value)
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean succeeded, Exception e) at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)
This issue occurs because the OnComplete handler incorrectly sets the powershell connection to null before all commands in the pipeline are processed. This causes an access violation when subsequent commands in the pipeline are executed.
To resolve this issue, install the following update rollup:
(http://support.microsoft.com/kb/2645995/ )Description of Update Rollup 1 for Exchange Server 2010 Service Pack 2
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about cmdlet extension agents, visit the following Microsoft website:
General information about cmdlet extension agentsFor more information about the Scripting Agent cmdlet extension agent, visit the following Microsoft website:
General information about the Scripting Agent cmdlet extension agentFor more information about how to manage cmdlet extension agents, visit the following Microsoft website:
General information about how to manage cmdlet extension agentsFor more information about the Enable-CmdletExtensionAgent cmdlet, visit the following Microsoft website:
General information about the Enable-CmdletExtensionAgent cmdletFor more information about the pipelining in the Exchange Management Shell, visit the following Microsoft website:
General information about the pipelining
Article ID: 2589982 - Last Review: February 13, 2012 - Revision: 1.0
Contact us for more help
Connect with Answer Desk for expert help.