Results 1 to 3 of 3

Thread: mass mailbox-enabling....EXCH2007 SP1.....all user account objects to be mailbox enabled are already created in one specific OU

  1. #1
    Cary Shultz Guest

    Default mass mailbox-enabling....EXCH2007 SP1.....all user account objects to be mailbox enabled are already created in one specific OU

    Good evening!

    I have two questions regarding the subject line:

    1) the organizational unit in which the 185 user account objects reside has
    the following path: "OU=MyOU, OU=Active Accounts, OU=MyUsers, DC= , DC=".
    If I am using the "get-User -OrganizationalUnit" CLI do I simply enter
    "get-User -OrganizationalUnit MyOU"? So, the entire entry to mass mailbox
    enable all of the user account objects in that OU would be:

    Get-user -OrganizationalUnit MyOU | Enable-mailbox -Database "EXCHx64\First
    Storage Group\Mailbox Database"

    2) What happens if someone has already created about 35 of these mailboxes?
    Does it simply tell me that the first 35 failed to be created because they
    already exist and it will create the other 150?


    Situation is that we have to create 185 mailbox-enabled accounts and the
    Help Desk has already created the Windows user accounts (all 185 of them)
    and put them all in a specific OU. Now, they are creating the mailboxes.
    They have manually created 35 or so of them. I am thinking that it would
    be a whole lot faster to use the built-in tools but have never done this
    (always creating onesies and twosies).

    Thanks,

    Cary


  2. #2
    Rich Matheisen [MVP] Guest

    Default Re: mass mailbox-enabling....EXCH2007 SP1.....all user account objects to be mailbox enabled are already created in one specific OU

    On Sun, 4 Oct 2009 21:10:36 -0400, "Cary Shultz"
    <cshultz@outsourceit.com> wrote:

    >1) the organizational unit in which the 185 user account objects reside has
    >the following path: "OU=MyOU, OU=Active Accounts, OU=MyUsers, DC= , DC=".
    >If I am using the "get-User -OrganizationalUnit" CLI do I simply enter
    >"get-User -OrganizationalUnit MyOU"? So, the entire entry to mass mailbox
    >enable all of the user account objects in that OU would be:
    >
    >Get-user -OrganizationalUnit MyOU | Enable-mailbox -Database "EXCHx64\First
    >Storage Group\Mailbox Database"


    That looks about right.

    >2) What happens if someone has already created about 35 of these mailboxes?
    >Does it simply tell me that the first 35 failed to be created because they
    >already exist and it will create the other 150?


    You'll get a failure on the 35 that already have mailboxes. The reset
    will succeed. If you want to eliminate the failures (assuming you
    don't have any mail-enabled users in the OU), make a small
    modification to your pipeline:


    Get-user -OrganizationalUnit MyOU | where {$_.RecipientType -ne
    'UserMailbox'} | Enable-mailbox -Database "EXCHx64\First Storage
    Group\Mailbox Database"

    Be cautious with the "get-user" cmdlet -- it'll get "service accounts"
    (like IUSR_servername, krbtgt, etc.) into your 'enable-mailbox' stream
    if you aren't careful. :-)
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP

  3. #3
    Cary Shultz Guest

    Default Re: mass mailbox-enabling....EXCH2007 SP1.....all user account objects to be mailbox enabled are already created in one specific OU

    Thanks, Rich! Looks like I do remember a few things....

    And, good point on the "Get-User" pipe.......It *could* be super dangerous
    as you mentioned. In this particular case not so dangerous....

    Cary

    "Rich Matheisen [MVP]" <richnews@rmcons.com.NOSPAM.COM> wrote in message
    news:tkmic5h87mavjinsl18bfs2mqhr13s79j1@4ax.com...
    > On Sun, 4 Oct 2009 21:10:36 -0400, "Cary Shultz"
    > <cshultz@outsourceit.com> wrote:
    >
    >>1) the organizational unit in which the 185 user account objects reside
    >>has
    >>the following path: "OU=MyOU, OU=Active Accounts, OU=MyUsers, DC= , DC=".
    >>If I am using the "get-User -OrganizationalUnit" CLI do I simply enter
    >>"get-User -OrganizationalUnit MyOU"? So, the entire entry to mass mailbox
    >>enable all of the user account objects in that OU would be:
    >>
    >>Get-user -OrganizationalUnit MyOU | Enable-mailbox -Database
    >>"EXCHx64\First
    >>Storage Group\Mailbox Database"

    >
    > That looks about right.
    >
    >>2) What happens if someone has already created about 35 of these
    >>mailboxes?
    >>Does it simply tell me that the first 35 failed to be created because they
    >>already exist and it will create the other 150?

    >
    > You'll get a failure on the 35 that already have mailboxes. The reset
    > will succeed. If you want to eliminate the failures (assuming you
    > don't have any mail-enabled users in the OU), make a small
    > modification to your pipeline:
    >
    >
    > Get-user -OrganizationalUnit MyOU | where {$_.RecipientType -ne
    > 'UserMailbox'} | Enable-mailbox -Database "EXCHx64\First Storage
    > Group\Mailbox Database"
    >
    > Be cautious with the "get-user" cmdlet -- it'll get "service accounts"
    > (like IUSR_servername, krbtgt, etc.) into your 'enable-mailbox' stream
    > if you aren't careful. :-)
    > ---
    > Rich Matheisen
    > MCSE+I, Exchange MVP



Similar Threads

  1. Looking for commands to convert shared mailbox to user mailbox.
    By Dipti in forum Exchange Administration Archive
    Replies: 1
    Last Post: 09-16-2009, 07:44 AM
  2. mailbox-enabled "domain admin" user account objects
    By Cary Shultz in forum Exchange Administration Archive
    Replies: 3
    Last Post: 08-20-2009, 05:21 AM
  3. Enabling non-Domain Admins the right to create a mailbox
    By =?Utf-8?B?UE0=?= in forum Exchange Administration Archive
    Replies: 5
    Last Post: 04-08-2009, 05:46 PM
  4. Deletion user account prior to mailbox
    By =?Utf-8?B?VS4gS8O8aG5l?= in forum Exchange Administration Archive
    Replies: 8
    Last Post: 03-16-2009, 05:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts