Active Roles does not support creation of Exchange 2003 mailboxes

I have a script which creates User Mailbox or if this mailbox isnt used for active sync a shared mailbox but i get this error

  • Administrative Policy returned an error. Exchange Server-related operation failed. Active Roles does not support creation of Exchange 2003 mailboxes. You can use Active Roles to create mailboxes of version Exchange 2007 or later.

Is there an Option to control the mailbox version? 

$attCreateUserMailbox = "edsaCreateMsExchMailbox"
$attCreateSharedMailbox = "edsva-MsExch-CreateSharedMailbox"

if ($ActiveSync)
{
	$Request.PutEx($Constants.ADS_PROPERTY_UPDATE, $attAccountIsDisabled, @($false))
	$Request.PutEx($Constants.ADS_PROPERTY_UPDATE, $attCreateUserMailbox, @($true))
}
else
{
	$Request.PutEx($Constants.ADS_PROPERTY_UPDATE, $attAccountIsDisabled, @($true))
	$Request.PutEx($Constants.ADS_PROPERTY_UPDATE, $attCreateSharedMailbox, @($true))
}

Parents Reply Children
  • it's for both the same. i'm not an exchange expert but i guess once you have an exchange 2016 the mailboxe version shouldn't be below 2007 if you try to create a malibox. 

  • 		if ($ActiveSync)
    		{
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $Constants.EDS_EPI_UI_RESTRICTED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $Constants.EDS_EFFECTIVE_POLICY_DEFAULT_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $Constants.EDS_EPI_UI_GENERATED_VALUE, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $Constants.EDS_EPI_UI_POSSIBLE_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $Constants.EDS_EPI_UI_VALUE_REQURIED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $constants.EDS_EPI_UI_POLICY_RULE, $true)
    			$Request.SetEffectivePolicyInfo($attCreateUserMailbox, $constants.EDS_EPI_UI_AUTO_GENERATED, $true)
    		}
    		else
    		{
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $Constants.EDS_EPI_UI_RESTRICTED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $Constants.EDS_EFFECTIVE_POLICY_DEFAULT_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $Constants.EDS_EPI_UI_GENERATED_VALUE, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $Constants.EDS_EPI_UI_POSSIBLE_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $Constants.EDS_EPI_UI_VALUE_REQURIED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $constants.EDS_EPI_UI_POLICY_RULE, $true)
    			$Request.SetEffectivePolicyInfo($attCreateSharedMailbox, $constants.EDS_EPI_UI_AUTO_GENERATED, $true)
    			
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $Constants.EDS_EPI_UI_RESTRICTED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $Constants.EDS_EFFECTIVE_POLICY_DEFAULT_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $Constants.EDS_EPI_UI_GENERATED_VALUE, "TRUE")
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $Constants.EDS_EPI_UI_POSSIBLE_VALUES, $true)
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $Constants.EDS_EPI_UI_VALUE_REQURIED, "TRUE")
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $constants.EDS_EPI_UI_POLICY_RULE, $true)
    			$Request.SetEffectivePolicyInfo($attAccountIsDisabled, $constants.EDS_EPI_UI_AUTO_GENERATED, $true)
    		}

    a diffrenet thing i tried is using policy but it just works for the Account is Disabled Attribute and not the Creat Mailbox