"Webb, Andy" <[EMAIL PROTECTED]> wrote:
Where is the script running? Have you made sure that CDO.Person is available (the OLE Browser will show you).What we normally see with this is that cdoex.dll needs to be copied to the system running the script and registered. It's not installed along with the Exchange Admin tools.There's a sample script at http://www.swinc.com/resources/scripts.asp that will create a mailbox enabled user. You can use that for reference as well.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thought Less
Sent: Wednesday, December 29, 2004 2:28 PM
To: [email protected]
Subject: CDO Creating Mailbox in Exchange 2003What I have done is created an user account using ADSI and all of that has went perfect. The problem that I am having now is when I go to create the mailbox associated with that user account I keep getting errors saying that object is not found when trying to open the $objURL. Below is what I am using to create the mailbox for the account
my $domain_dcs = "dc=microsoft,dc=com";
my $objPerson = Win32::OLE->new("CDO.Person");
my $objURL = "LDAP://cn=$last_name\\, $first_name,cn=users,$domain_dcs;";
$objPerson->DataSource->Open( $objURL, undef, 3); <-Dies right here when trying to open the object
my $objMailbox = $objPerson->GetInterface( 'IMailboxStore' );
my $strMDB = "CN=$mail_folder,CN=$storage_group,CN=InformationStore,CN=$exchange_server," .
"CN=Servers,CN=$site_name,CN=Administrative Groups," .
"CN=Microsoft,CN=Microsoft Exchange,CN=Services," .
"CN=Configuration,$domain_dcs�;
$objMailbox->CreateMailbox( $strMDB );
$objPerson->DataSource->Save();
Can anyone tell me what I maybe doing wrong?
Thanks.
Do you Yahoo!?
Meet the all-new My Yahoo! � Try it today! _______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Do you Yahoo!?
Meet the all-new My Yahoo! � Try it today!
_______________________________________________ Perl-Win32-Admin mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
