Quote:

Here is a script I use to bulk create accounts. It includes a section for creating a mailbox...

Code:

; Create Mailbox
$msExchHomeServerName = "/O=domain/OU=World HQ/cn=Configuration/cn=Servers/cn=OH01MS42"
$homeMDB = "CN=OH01MS42 SG4 MS5,CN=OH01MS42 SG4,CN=InformationStore,CN=OH01MS42,"+
"CN=Servers,CN=World HQ,CN=Administrative Groups,CN=domain,CN=Microsoft "+
"Exchange,CN=Services,CN=Configuration,DC=domain,DC=com"
$objUser.Put("msExchHomeServerName",$msExchHomeServerName)
$objUser.Put("homeMDB",$homeMDB)
$objUser.Put("mDBUseDefaults",TRUE)
$objUser.Put("mailnickname",$sFrstName+"."+$sLastName)
$objUser.Put("mail",$sFrstName+"."+$sLastName+"@@domain.com")

; Commit changes to Active Directory
$objUser.SetInfo
If @ERROR $Err=$Err+','+@ERROR EndIf

Exit 0






Can someone further explain the meanings of this section for me ?
I'm trying to figure out the /O and the CN= sections of the exchange server and home database lines.

I'd appreciate any further details.

gerald