ScriptingAgentConfig for mailbox migration or creation

If I want to set the regional configuration of newly created or migrated mailboxes, is the following ScriptingAgentConfig correct? 

<?xml version="1.0" encoding="utf-8" ?>
<Configuration version="1.0">
<Feature Name="Mailboxes" Cmdlets="New-Mailbox, Enable-Mailbox, New-MoveRequest, Resume-MoveRequest">
<ApiCall Name="OnComplete">
if($succeeded) {
$Name= $ProvisioningHandler.UserSpecifiedParameters["Name"]
Set-MailboxRegionalConfiguration $Name -Language en-us -DateFormat "M/d/yyyy" -TimeFormat "H:mm" -TimeZone "China Standard Time"
}
</ApiCall>
</Feature>
</Configuration>

July 20th, 2015 9:08am

Hi 

Your agent looks fine 

Just add -DomainController $DC.domain.comas well

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 10:03am

Hi,

Great advice from Sathish.

Since this issue is related to script of Exchange server. I recommend you to contact Scripting for Exchange Server Team so that you can get more professional suggestion, please refer to: https://technet.microsoft.com/en-us/scriptcenter/dd742246.aspx?f=255&MSPPError=-2147217396

July 21st, 2015 2:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics