Office 365 online management shell
These steps are required once on your computer, not every time you connect. However, you’ll likely need to install newer versions of the software periodically.
- Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW.
- Install the 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell: Windows Azure Active Directory Module for Windows PowerShell (64-bit version).
Step 2: Open the Windows Azure Active Directory Module for Windows PowerShell
-
Find and open the Windows Azure Active Directory Module for Windows PowerShell by using one of the following methods based on your version of Windows:
- Start menu On the Start menu, enter Azure in the Search programs and files box.
-
No Start menu Search for Azure using any of these methods:
- On the Start screen, click an empty area, and type Azure.
- On the desktop or the Start screen, press the Windows key+Q. In the Search charm, type Azure.
- On the desktop or the Start screen, move your cursor to the upper-right corner, or swipe left from the right edge of the screen to show the charms. Select the Search charm, and enter Azure.
- On the Start screen, click an empty area, and type Azure.
- Start menu On the Start menu, enter Azure in the Search programs and files box.
- In the results, select Windows Azure Active Directory Module for Windows PowerShell.
Step 3: Connect to Office 365 PowerShell
-
In the Windows Azure Active Directory Module for Windows PowerShell, run the following command.
$UserCredential = Get-Credential
Note:
make sure the credentials are username@Domain.com
-
In the Windows PowerShell Credential Request dialog box, type your Office 365 work or school account user name and password, and then click OK.
-
Run the following command.
Connect-MsolService -Credential $UserCredential
How do you know this worked?
After Step 3, if you don’t receive any errors, you connected successfully. A quick test is to run an Office 365 cmdlet—for example, Get-MsolUser—and see the results.
Windows Azure Active Directory Module for Windows PowerShell (64-bit version).
http://go.microsoft.com/fwlink/p/?linkid=236297
ref:
Leave a Reply