I am using the below code to create e-mail accounts for my new users, but although the X400 connecor type is created, the X500 connector type is not created. Can anyone tell me how to create this connector using the script below?

thanks. -- dee

; Create Mailbox
$msExchHomeServerName = "/o=Company/ou=EXCHANGE/cn=Configuration/cn=Servers/cn=ServerName"
$homeMDB = "CN=Mailbox Store (ServerName),CN=First Storage Group,CN=InformationStore,CN=ServerName,CN=Servers,CN=EXCHANGE,CN=Administrative Groups,CN=Company,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=anywhere,DC=com"
$User.Put("msExchHomeServerName",$msExchHomeServerName)
$User.Put("homeMDB",$homeMDB)
$User.Put("mDBUseDefaults",TRUE)
$User.Put("mailnickname",$networklogon.text)
$User.Put("mail",lcase($networklogon.text) + "@@anywhere.com")