Applies to: Live@edu
Topic Last Modified: 2011-03-19
Every mailbox user you create is assigned to a mailbox plan. In Live@edu organizations, you can also change a user's mailbox plan in the Exchange Control Panel as described in Assign a Mailbox Plan.
But what if you need to change the mailbox plan for many existing users at the same time? For example, what if you have a large group of existing users that you need to hide from the shared address book by assigning the GalDisabledMailboxPlan? For this, you use Windows PowerShell.
Before you begin
This procedure is valid for Microsoft Live@edu organizations only.
To learn how to install and configure Windows PowerShell and connect to the service, see Use Windows PowerShell in Exchange Online.
Choose your method
There are two ways to assign a mailbox plan to a specific group of existing users:
-
Filter the users based on an existing attribute This method assumes that the target user accounts all share a unique filterable attribute. For example, the Title, Department, or one of the CustomAttribute1-15 attributes are the same for and unique to all the affected users. Note that some attributes, such as Title, Department, address information, and telephone number, are visible only when you use the Get-User cmdlet. Other attributes, such as CustomAttribute1-15, are visible only when you use the Get-Mailbox cmdlet.
-
Use a list of specific accounts After you generate the list of specific accounts, you can use that list to assign a mailbox plan.
Filter the users based on an existing attribute
Run the following command:
<Get-Mailbox | Get-User> -ResultSize unlimited -Filter <filter> | Set-Mailbox -MailboxPlan <Mailbox plan>
For example, let's assume you want to hide students in the primary grades from the shared address book and you've stored students' grade level in the Title attribute. To assign the GalDisabledMailboxPlan to all mailboxes where the Title property contains "Primary", you retrieve the mailboxes that meet that criterion and assign the mailbox plan by running the following command:
Use a list of specific accounts
Run the following command:
For example, the following procedure uses the text file C:\My Documents\GALDisabled.txt to identify the users by their Windows Live IDs. The text file must contain one Windows Live ID on each line like this:
After you populate the text file with the user accounts you want to update, run the following command: