Wednesday, July 4, 2012

Powershell and office 365 : "Getting Started with Office 365 and PowerShell"

 

Hi,

These days every one knows about  "Microsoft Office 365" , It's cool , economical and reliable, and i hope sooner or later every SMBs,MNC will migrate to "Office 365".  Once everyone moved to "office 365" then i am sure every administrator missing , messing up with the servers. ;o)

Anyway..i

Today i planned to get started with Powershell and "Office 365", i want to know how it works and how to configure Powershell to works with "Office 365", I was thinking that it could be hard , but somehow i am pretty amazed that this is quite simple and pretty well explained on "Microsoft office 365" website.

Here is link for that site. http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx#BKMK_connect 

The Process is Simple

  • Step : 1
    • Download and Install "Microsoft Online Services Sign-in Assistant"
  • Step : 2
    • Download and install "Microsoft Online Services Module for windows Powershell"

All Done .. {Installation wise }

  • Step : 3
    • Start Using it Geek...

Now there are two ways to access these Module.

  • Way : 1
    • When you finished installing "Microsoft Online Services Module for windows Powershell", The installer adds the program to your Start menu and a shortcut to your desktop. Just click on the below ICON and that open a powershell with "Msonline" office 365 module loaded.

              04-07-2012 19-05-51

  • Way : 2
    • You favourite Geeky way.
      • Open PowerShell Console
      • and type our favourite cmdlet  Import-Module Msonline

        04-07-2012 19-08-02

Which ever the way used to open "Powershell Console" we need to require to connect to "MSOnline" cloud service.

let have a look which cmdlets its having.

Get-Command -Module Msonline

04-07-2012 19-15-30


and we are interested in "Connect-MsolService"


Ok, its time to connect to the Cloud.


in console type "Connect-MsolService" cmdlet and it open a Credential window , type your admin Username {onmicrosoft.com}  and password in the credential windows and click on "OK".


04-07-2012 19-25-39


if you see any RED RED thing that means your are providing wrong username and password.


and is you got nothing and you came back on the shell that means everything is good.


04-07-2012 19-26-13


Now it's time to test it.


ok. let run this cmdlet "Get-MsolCompanyInformation" and see if we got something.


Ok i got the correct data....Hurray !!!!!!!!


04-07-2012 19-32-24 


Thanks for reading.


Thanks!

Aman Dhally

Buy-More-Twitter-Followers 4fb29548b6adc

003387dk 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.