Thursday, September 19, 2013

Connect Office 365 using Windows PowerShell from your local computer


Connect Office 365 using Windows PowerShell from your local computer
1.             Click Start, point to All ProgramsàAccessoriesàWindows PowerShellàWindows PowerShell.
             (assumption you already run the Set-ExecutionPolicy RemoteSigned command)
2.             Run the following command:
$LiveCred = Get-Credential
 
 
3.             In the Windows PowerShell Credential Request window, type the credentials of an account in your Office 365 organization. Then, click OK.
4.             Run the following command:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
 
                  

5.             Run the following command:
Import-PSSession $Session
 
 
 
 
 
6.             To disconnect Windows PowerShell from the Office 365 service
When you're finished disconnect Windows PowerShell by running the below command:
                Remove-PSSession $Session
 
 
Note:-If you close the Windows PowerShell window without disconnecting from the Office 365 session, your connection will remain open for 15 minutes. Your account can have only three concurrent connections to the Office 365 session at one time.

Wednesday, September 18, 2013

Check Office 365 Service Upgrade Status using PowerShell



Check Office 365 Service Upgrade Status using PowerShell

 Microsoft will send you are scheduled for upgrade by our automated scheduling system, Microsoft will provide a notification in your Office 365 admin portal and send the Office 365 global administrator a notification email. The first notification provides you approximately four weeks advanced notice before your upgrade will begin, so you have time to take pre-upgrade steps, if needed. As the upgrade date approaches, Microsoft will send an email with the exact upgrade date (Only one time you can postpone the upgrade process).

You can verify your organization version from the below PowerShell command

Steps

  1. Install  Windows Azure Active Directory Module for Windows PowerShell
  2. Launch Windows Azure Active Directory Module for Windows PowerShell
  3. Execute the following commands:

    Import-Module MSOnline
    Connect-MsolService
     
    (Get-MsolCompanyInformation).CompanyTags

Find the below screenshot for reference.

  4. Type your Global or Company Administrator credentials


 
 
5. Launch Windows PowerShell and connect to Office 365 and run the following commands to gather more information of the Wave 15 upgrade.
 
 Get-OrganizationConfig | Format-List AdminDisplayVersion
 
Get-OrganizationConfig | fl Name, Admindisplayversion, IsUpgradingOrganization
 
 
 
  6. Close the Office 365 session once you complete the activity.
 
 
 
Note:-If you close the Windows PowerShell window without disconnecting from the Office 365 session, your connection will remain open for 15 minutes. Your account can have only three concurrent connections to the Office 365 session at one time.