Office 365 Login Scripts from Ryan are super handy!

Today again I found myself trying to remember the logon commands for Office 365 Powershell!   (Weirdly, I can remember commands once I am in, but constantly forget the logon ones).   Anyway, because this frustrated me again, a bit of Googling found me this blogpost from Ryan Mangan.

Now, the whole story is not on Ryan’s site.    There are some other things you need to do to make his scripts work without constant prompt to run….

  1. Make sure you run the command Set-ExecutionPolicy Unrestricted
  2. Make sure to run the command  Unblock-File C:\windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
  3. …and this one….  Unblock-File C:\Office365\office365login.ps1

365powershell5

Thanks Ryan!

  6 Replies to “Office 365 Login Scripts from Ryan are super handy!”

Leave a Reply to Robert Pearman Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.