Attention: This page is scheduled to be removed on June 30, 2014. Please refer to the Message Center in the Office 365 admin portal to stay informed about changes to your Office 365 service, including new features and actions you need to take to keep your service running smoothly.


If you use Windows PowerShell to manage your institution in Live@edu, you will need to update your provisioning workflow and the commands you currently use.

In this article

Common tasks

Additional resources

Common tasks

The following table summarizes differences in common Windows PowerShell commands between Live@edu and Office 365.

TaskIn Live@eduIn Office 365

Connect to the service

Exchange Online cmdlets

Connecting Windows PowerShell to Exchange Online is the same in Live@edu and Office 365. Follow the instructions in Use Windows PowerShell in Exchange Online:

  1. If necessary, install and configure Windows PowerShell.
  2. Start Windows PowerShell.
  3. Set the execution policy:

    Set-ExecutionPolicy RemoteSigned

  4. Run the following command and enter your Live@edu administrator credentials when prompted:

    $LiveCred=Get-Credential

  5. Run:

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection

  6. Run:

    Import-PSSession $Session

Exchange Online cmdlets

Connecting Windows PowerShell to Exchange Online is the same in Live@edu and Office 365. You use your Office 365 credentials to connect to the service.

Follow the instructions in Use Windows PowerShell in Exchange Online.

Windows Azure AD cmdlets

To use the Windows Azure AD commands for PowerShell to manage your institution in Office 365, follow the instructions in Windows Azure Active Directory PowerShell:

  1. Install the required software, including the Microsoft Online Services Sign-In Assistant and the Windows Azure Active Directory Module for Windows PowerShell.
  2. Click the Windows Azure Active Directory Module for Windows PowerShell shortcut to open a Windows PowerShell workspace that has the cmdlets.
  3. Run the following command and enter your Office 365 administrator credentials when prompted:

    Connect-MsolService

Manage Exchange Online accounts

Exchange Online cmdlets

To specify a user’s identity in Exchange Online cmdlets that that create objects, such as New-Mailbox and New-MailUser, you use the -WindowsLiveID parameter.

For cmdlets that modify or retrieve information such as Get-Mailbox, Set-Mailbox, Get-MailUser, and Set-MailUser, use the -Identity parameter.

Exchange Online cmdlets

To specify a user’s identity in Exchange Online cmdlets that create objects, such as New-Mailbox and New-MailUser, you must use the -MicrosoftOnlineServicesID parameter.

For cmdlets that modify or retrieve information such as Get-Mailbox, Set-Mailbox, Get-MailUser, and Set-MailUser, continue to use the -Identity parameter.

For example, to create a new mail user with a new Microsoft account, run:

New-MailUser -Name "Dina McGuire" -WindowsLiveID dina@fineartschool.net -Password (ConvertTo-SecureString -String "P@ssw0rd!" -AsPlainText -Force) 

Exchange Online cmdlet examples

For example, to create a new mail user, run:

New-MailUser -Name "Dina McGuire" -MicrosoftOnlineServicesID dina@fineartschool.net -Password (ConvertTo-SecureString -String "P@ssw0rd!" -AsPlainText -Force

Provision new accounts

Exchange Online cmdlets

To create new mailboxes in Live@edu, you may have specified a mailbox plan. The DefaultMailboxPlan and GALDisabledMailboxPlan are the only mailbox plans available in Live@edu.

Exchange Online cmdlets

  • If you use the -MailboxPlanparameter, mailbox plans now correspond to types of Office 365 licenses.
    • After the upgrade to Office 365, your institution is subscribed to Exchange Online (Plan 1) for Students, so the only mailbox plan available is ExchangeOnline.
  • If you add new mailboxes to Exchange Online, you also need to assign a license to each mailbox. You can assign licenses by using the Windows Azure AD Set-MsolUserLicense cmdlet.

Windows Azure AD cmdlets

When you create new users in Office 365, assigning Exchange Online licenses automatically provisions mailboxes for the users.

  • To provision new users and assign licenses in one step, use the Windows Azure AD New-MsolUser cmdlet.
  • To assign or update licenses for an existing user, use the Windows Azure AD Set-MsolUserLicense cmdlet.
  • After the upgrade to Office 365, your institution is subscribed to Exchange Online (Plan 1) for Students, so the only license plan available is EXCHANGESTANDARD_STUDENT.

For example, to create a new user with the default mailbox plan, run:

New-MailBox -Name “Dina McGuire” -WindowsLiveID dina@fineartschool.net -MailboxPlan DefaultMailboxPlan -Password (ConvertTo-SecureString -String “P@ssw0rd!” -AsPlainText -Force)

Or to create a new user with the GALDisabledMailboxPlanmailbox plan, run:

New-MailBox -Name “Dina McGuire” -WindowsLiveID dina@fineartschool.net -MailboxPlan GALDisabledMailboxPlan -Password (ConvertTo-SecureString -String “P@ssw0rd!” -AsPlainText -Force)

Exchange Online cmdlet examples

For example, use the Exchange Online cmdlet New-Mailbox to create a new mailbox and specify the mailbox plan:

New-MailBox -Name “Dina McGuire” -MicrosoftOnlineServicesID dina@fineartschool.net -MailboxPlan ExchangeOnline -Password (ConvertTo-SecureString -String “P@ssw0rd!” -AsPlainText -Force)

To hide student information from the global address list for a particular mailbox like the GALDisabledMailboxPlan did in Live@edu, run:

Set-MailBox -Identity dina@fineartschool.net -HiddenFromAddressListsEnabled $true

Windows Azure cmdlet examples 

Use the Windows Azure AD Get-MsolAccountSku cmdlet to retrieve the license plan for your institution:

$License = Get-MsolAccountSku | Select –ExpandProperty AccountSkuId

To create a new user in the United States and assign the license plan you retrieved in one step, you might use:

New-MsolUser -UserPrincipalName dina@fineartschool.net –DisplayName “Dina McGuire” –FirstName “Dina” –LastName “McGuire” –UsageLocation “US” –Password “P@ssw0rd!” -LicenseAssignment $License

Or to assign the license plan you retrieved to an existing unlicensed user who already has their usage location specified, you could run:

Set-MsolUserLicense -UserPrincipalName dina@fineartschool.net -AddLicenses $License

Remove accounts

Exchange Online cmdlets

In Live@edu, to delete a user, you use the Remove-Mailbox and can specify whether to keep the associated Microsoft account (formerly known as Windows LiveID).

Exchange Online cmdlets

You can use the same command to remove a mailbox as in Live@edu. Accounts and data become non-recoverable 30 days after deletion.

Windows Azure AD cmdlets

To remove users in Office 365, use the Remove-MsolUser Azure AD cmdlet. Accounts and data become non-recoverable 30 days after deletion.

For example, to remove a mailbox and the associated Microsoft account, run:

Remove-Mailbox dina@fineartschool.net

Or to remove a mailbox, but still allow the user to use the associated Microsoft account, run:

Remove-Mailbox dina@fineartschool.net -KeepWindowsLiveID

Exchange Online cmdlet examples

For example, using an Exchange Online cmdlet, run:

Remove-Mailbox dina@fineartschool.net

Windows Azure cmdlet examples

For example, using a Windows Azure AD cmdlet, run:

Remove-MsolUser -UserPrincipalName dina@fineartschool.net

Manage passwords

Exchange Online cmdlets

In Live@edu, you could use Exchange Online cmdlets to manage passwords.

Exchange Online cmdlets

You can no longer manage passwords by using Exchange Online cmdlets.

Windows Azure AD cmdlets

To manage passwords in Office 365, you must use the Windows Azure AD Set-MsolUserPassword cmdlet. For information about Office 365 password requirements and settings, see Sign-in and passwords.

For example, to reset a password and force the user to change the password at next sign-in, run:

Set-Mailbox dina@fineartschool.net -Password (ConvertTo-SecureString -String “P@ssw0rd!” -AsPlainText -Force) -ResetPasswordOnNextLogon $true

Windows Azure AD cmdlet examples

For example, run the following command to reset a user’s password and force them to change it at next sign-in:

Set-MsolUserPassword –UserPrincipalName dina@fineartschool.net -NewPassword “P@ssw0rd!” -ForceChangePassword $true

Manage supervision policies

Exchange Online cmdlets

In Live@edu, you could modify pre-defined supervision policies.

Exchange Online cmdlets

Supervision policies are not available in Office 365, and the following Exchange Online cmdlets can no longer be used:

  • Add-SupervisionListEntry
  • Get-SupervisionListEntry
  • Remove-SupervisionListEntry
  • Get-SupervisionPolicy
  • Set-SupervisionPolicy

You can rebuild supervision policies using the New-TransportRule cmdlet.

See Exchange Online differences and Recreate supervision policies for more information.

For example, to enable the closed campus inbound policy, run:

Set-SupervisionPolicy –ClosedCampusInboundPolicyEnabled $true

For other examples, see:

Exchange Online cmdlet examples

For example, to re-create the closed campus inbound policy that existed in Live@edu, run:

New-TransportRule -Name __closedcampusinbound -FromScope NotInOrganization -RejectMessageReasonText "You can't send e-mail to people in this organization." -Priority 0 -Enabled $true

Manage new Exchange Online features

Exchange Online cmdlets

Certain Exchange Online features are not available in Live@edu. For more information, see Exchange Online differences.

Exchange Online cmdlets

New Exchange Online features in Office 365 include archiving and unified messaging.

You can use Exchange Online cmdlets to manage archiving and to manage unified messaging.

Get help

Exchange Online cmdlets

To learn more about a cmdlet including what it does, the parameters it requires, and examples, use the Get-Help cmdlet.

Exchange Online and Windows Azure AD cmdlets

Use the same Get-Help cmdlet to learn more about a cmdlet as you did in Live@edu.

For example, to learn more about the Set-Mailbox cmdlet, run:

Get-Help Set-Mailbox

Exchange Online cmdlet examples

For example, to learn more about the Exchange Online Set-Mailbox cmdlet, run:

Get-Help Set-Mailbox

Windows Azure AD cmdlet examples

To learn more about the Windows Azure AD Set-MsolUser cmdlet, run:

Get-Help Set-MsolUser

Additional resources

Reference

Sample commands and scripts

Live@edu

Office 365