David,

you can move a users mailbox with script, look up CDOEXM

here's a unchecked code snippet:

Sub ADSIMoveMailbox(recipname As String, DestinationServer As String,
MailBoxStore As String, StorageGroup As String)



Dim objUser As IADsUser

Dim objMailbox As CDOEXM.IMailboxStore

Dim strMove As String

Dim exchPath



On Error GoTo errorhandler

Set objUser = GetObject(recipname)

Set objMailbox = objUser



If objMailbox.HomeMDB <> "" Then

    exchPath = DestinationServer

    If exchPath <> "" Then

       strMove = "cn=" + MailBoxStore + ",cn=" + StorageGroup +
",cn=InformationStore," + exchPath

        MsgBox "Now Moving:" & objUser.Name

       objMailbox.MoveMailbox strMove <-- This does all the work

       objUser.SetInfo

       MsgBox "Move Mailbox operation has been completed for user " +
recipname

    Else

       MsgBox "FAIL :Server " + DestinationServer + " not found"

    End If

Else

     MsgBox "FAIL: no mailbox to move for " + recipname

End If



On Error Goto 0

GoTo EndofItAll



errorhandler:

    If Err <> 0 Then

       MsgBox "FAIL: Move Mailbox Error while moving user " + recipname + ".
Error Code is " + Str(Err)

       Exit Sub

    End If

EndofItAll:

End Sub


HTH

----- Original Message -----
From: "Moore, David K" <[EMAIL PROTECTED]>
To: "Exchange Discussions" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 7:01 AM
Subject: RE: Using ADUC: How to list all users in a specific database?


> Thanks for the info -
>
> Though I do know about LDIF and CSV dumps out of AD and I'm even good with
> using ADSI to perform LDAP lookups but they all have one little problem -
> they don't have the "move mailbox" option.  I am attempting to move the
> users mailbox from one DB to another.
>
> david
>
> -----Original Message-----
> From: Kevin Miller [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 3:54 PM
> To: Exchange Discussions
> Subject: RE: Using ADUC: How to list all users in a specific database?
>
>
> LDIFDE very simple. Once you learn it.
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q237677
>
> --Kevinm KMAP-SR, M, WLKMMAS, UCC+WCA, And Beyond
> http://www.daughtry.ca/ For Graphics and WebDesign, GO here!
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Moore, David K
> Sent: Tuesday, May 28, 2002 1:52 PM
> To: Exchange Discussions
> Subject: Using ADUC: How to list all users in a specific database?
>
>
> I am attempting to generate a search result in Active Directory Users
> and Computers that only lists users in a specific database - I need to
> move all those specific users to new databases and I really don't want
> to write down all the names and move them manually.  So, here is what
> I've done already:
>
> - No, can't simply navigate down to the servers' database object and
> list of users then right click and move - no such option on the context
> menu.
>
> - Tried every combination of "Exchange Mailbox Store" in the search
> feature of ADUC - wouldn't you think it would be
> "CN=databasename,CN=storagegroupname" with the "starts with" search
> option?
>
> Help!  Any ADUC guru's out there?
>
> David
>
> _________________________________________________________________
> List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
> Archives:               http://www.swynk.com/sitesearch/search.asp
> To unsubscribe:         mailto:[EMAIL PROTECTED]
> Exchange List admin:    [EMAIL PROTECTED]
>
>
> _________________________________________________________________
> List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
> Archives:               http://www.swynk.com/sitesearch/search.asp
> To unsubscribe:         mailto:[EMAIL PROTECTED]
> Exchange List admin:    [EMAIL PROTECTED]
>
> _________________________________________________________________
> List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
> Archives:               http://www.swynk.com/sitesearch/search.asp
> To unsubscribe:         mailto:[EMAIL PROTECTED]
> Exchange List admin:    [EMAIL PROTECTED]


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to