• Home
  • About
    • 365Dude photo

      365Dude

      365Dude is a blog about Microsoft 365 and everything related

    • Learn More
    • Twitter
    • Facebook
    • LinkedIn
    • Instagram
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

Connect to O365 Powershell with one command

12 Feb 2017

Reading time ~1 minute

For a few years, I’ve been using a simple script to connect to Office 365 using Powershell. In stead of typing all the commands needed to connect to both Azure AD and Exchange Online, I use a small piece of code placed in my Powershell profile to do all this for me. I simply type open-msolconnection from my Powershell prompt, specify my username and password and that’s it.

I’ve received some questions about this little function, so I decided to share it on GitHub. You can find it here. Enjoy!



Azure ADOffice 365Powershell Share Tweet +1