Search the web
Sign In
New User? Sign Up
ADSIANDDirectoryServices · ADSI and System.DirectoryServices Q&A
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ADAM - Change Password using Sharepoint   Message List  
Reply | Forward Message #4565 of 4632 |
RE: [ADSI-DirSrv] Creating a mailbox

Yes, that's one way to do it and it's a lot more powerful than CDOEXM. With
that comes more complexity.



An easier way, if you don't need all the control, is just to shell out and
call PowerShell. That is:



%comspec% powershell.exe "&{new-exchangemailbox ..}"



Etc.etc.



Regards,



Michael B. Smith

MCITP:SA,EMA/MCSE/Exchange MVP

http://TheEssentialExchange.com



From: ADSIANDDirectoryServices@yahoogroups.com
[mailto:ADSIANDDirectoryServices@yahoogroups.com] On Behalf Of Yantis,
Richard
Sent: Wednesday, September 10, 2008 7:06 AM
To: ADSIANDDirectoryServices@yahoogroups.com
Subject: RE: [ADSI-DirSrv] Creating a mailbox



Is the below good info on how to do that? Seems quite a bit more
involved than what I have now. I am creating the accounts and mailboxes
from asp.Net.

< You can call the powershell cmdlets directly (and in-process) from
your
< application. If you wan't to do this in a web-page, you'll have to
separate
< the call to the cmdlet from the website (UI) and put it in a COM+
application.
<
< See http://msdn2.microsoft.com/en-us/library/bb332449.aspx.

-----Original Message-----
From: ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com>
[mailto:ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com> ] On Behalf Of Michael
B. Smith
Sent: Wednesday, September 10, 2008 3:45 AM
To: ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com>
Subject: RE: [ADSI-DirSrv] Creating a mailbox

Not if you don't have an Exchange 2000/2003 server.

You'll have to move to PowerShell.

Regards,

Michael B. Smith
MCITP:SA,EMA/MCSE/Exchange MVP
http://TheEssentialExchange.com


From: ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com>
[mailto:ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com> ] On Behalf Of Yantis,
Richard
Sent: Tuesday, September 09, 2008 11:13 PM
To: ADSIANDDirectoryServices@yahoogroups.com
<mailto:ADSIANDDirectoryServices%40yahoogroups.com>
Subject: [ADSI-DirSrv] Creating a mailbox

We have been using the code below for a few years to create all of the
mailboxes for our university. We are moving from Exchange 2003 to
Exchange 2007 and have already move AD to 2008. Is my CDOEXM still
going to work?

Dim IMailbox As CDOEXM.IMailboxStore =
CType(adsUser.NativeObject, CDOEXM.IMailboxStore)
MDBURL = "LDAP://" & adsHost & "/" &
mdbData.GetMDBURL(mdbStoreData) & "," & adsRoot
IMailbox.CreateMailbox(MDBURL)
PutProp("mailNickname", adsUser.Username) 'use
samAccountName as mailNickname
PutProp("proxyAddresses", "SMTP:" & eMailAddress & "@" &
adsDomain)
PutProp("mDBUseDefaults", True) 'We want this value to
always be true for new MBs.
' enable immediate-logon for the user
PutProp("msExchUserAccountControl", 0) 'just added this on
7/5/2005.
adsUser.CommitChanges()

Richard

[Non-text portions of this message have been removed]

------------------------------------

Yahoo! Groups Links





[Non-text portions of this message have been removed]




Wed Sep 10, 2008 11:26 am

swngdnz
Online Now Online Now
Send Email Send Email

Forward
Message #4565 of 4632 |
Expand Messages Author Sort by Date

Hello I am trying to create/update an existing code which I used for SQL FBA Login. Now I am using same code with ADAM FBA Login. This code I am using for...
Ashish Kanoongo
ashishkanoongo
Offline Send Email
Sep 6, 2008
8:20 pm

What's the error you're encountering? ... From: Ashish Kanoongo <ashishkanoongo@...> To: ADSIANDDirectoryServices@yahoogroups.com Sent: Wednesday, August...
Ken Manuel
ken_pogi
Offline Send Email
Sep 9, 2008
7:07 am

We have been using the code below for a few years to create all of the mailboxes for our university. We are moving from Exchange 2003 to Exchange 2007 and...
Yantis, Richard
yantran52
Offline Send Email
Sep 10, 2008
3:13 am

Not if you don't have an Exchange 2000/2003 server. You'll have to move to PowerShell. Regards, Michael B. Smith MCITP:SA,EMA/MCSE/Exchange MVP ...
Michael B. Smith
swngdnz
Online Now Send Email
Sep 10, 2008
8:45 am

Is the below good info on how to do that? Seems quite a bit more involved than what I have now. I am creating the accounts and mailboxes from asp.Net. < You...
Yantis, Richard
yantran52
Offline Send Email
Sep 10, 2008
11:05 am

Yes, that's one way to do it and it's a lot more powerful than CDOEXM. With that comes more complexity. An easier way, if you don't need all the control, is...
Michael B. Smith
swngdnz
Online Now Send Email
Sep 10, 2008
11:26 am

Let me pick this thread back up since I am getting closer to having to make the coding change to Exchange 2007. For now we are running a mix of Exchange 2003...
yantran52
Offline Send Email
Nov 19, 2008
3:47 pm

Hello I am getting following error Password couldn't be changed due to restrictions Please advise Ashish...
Ashish Kanoongo
ashishkanoongo
Offline Send Email
Sep 21, 2008
7:29 am

Hello   I am getting following error   Login failure: unknown user name or bad password  Regards Ashish Kanoongo 732-491-7563 ... From: Ken Manuel...
Ashish Kanoongo
ashishkanoongo
Offline Send Email
Sep 21, 2008
7:29 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help