PowerShell/Community-Blog

Bulk Create Exchange Mailboxes for AD users and configure settings

CiscoK005 opened this issue · 1 comments

I was trying to update an old line in our PowerShell script to create an exchange mailbox for users with no mailbox
Here's what I have so far:

The goal is to:

  1. Create Mailbox for all ADusers with No mailbox in a specific OU
  2. Add A CustomAttribute in Attribute9
  3. Disable IMAP and POP

Get-User -OrganizationalUnit Our UserOU -RecipentTypeDetails User | Enable-Mailbox -database “Your Database” | Set-Mailbox -CustomAttribute9 OurAttribute | Set-CASMailbox –PopEnabled $False –IMAPEnabled $False

Any help you provide would be extremely appreciated.

I like the idea.

What is the business use of this? What business problem would be being solved. I'd like to ensure this bog focuses on applying PowerShell rather than using it just because we can. :-).

What are you envisioning using for Attribute9. and where do you get the value for this object attribute?