Step by Step : Use Windows PowerShell to manage Office 365

In this article, let’s look at how we can use PowerShell to manage your Office 365 environment. before moving forward, you need to first download & install Office 365 cmdlets.

Download Links

After installing Online Services Module, we can run Online Services Module from the start menu –> Programs –> Microsoft Online Services

image

Once you open PowerShell Online Services module it will import Online Services modules in to PowerShell

image

As the first step, we need to get connected to our Office 365 account and for that we need to use “Connect-MsolService” cmdlet

image

soon after you will be prompted to enter your user credentials which you are using to Administrate Office 365 account

image

after entering your credentials, you will successfully get connected to your Office 365 account. Now you can administrate your Office 365 account using Powershell

let’s try with “Get-MsolUser” cmdlet and see whether we can get a list of users whom I have created.

SNAGHTML8f97000

find below reference link to get information about more PowerShell cmdlets which are available for you to administrate your Office 365 Account.

 

http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh125002.aspx

Nirmal Thewarathanthri

Nirmal Thewarathanthri