Connect-EXOnline

Welcome Forums General PowerShell Q&A Connect-EXOnline

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
2 years, 6 months ago.

  • Author
    Posts
  • #59128

    Participant
    Topics: 4
    Replies: 4
    Points: 0
    Rank: Member

    Hi All,

    I am in the process of creating an automated script which will connect me to O365 PowerShell. I am relatively new to PowerShell but I have created my profile with the help of Microsoft Virtual Academy.

    The first part of the .ps1 file is Function Connect-EXOnline. When I run this command I return an error 'the term 'connect-msonline' is not recognized as the name of a cmdlet' however, this works in the video I've been watching.

    I am running Windows 10 update 1511 which should contain the WM 5.0 package and the latest cmdlets but I can't seem to get it working.

    Has anyone else experienced this at all?

    Many thanks,
    Andy

  • #59130

    Participant
    Topics: 1
    Replies: 92
    Points: 2
    Rank: Member

    This requires that the MSOnline module is installed on your computer. There is a wiki here describing the different versions of the module:

    http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx

    And here is an article describing the "preview" versions of the module:

    http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185

    I recommend v1.1.130.0 as this is what I use and it is very stable.

  • #59143

    Participant
    Topics: 0
    Replies: 61
    Points: -11
    Rank: Member

    Hi

    Connecting to Exchange Online: https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx

    Jake

  • #59220

    Participant
    Topics: 4
    Replies: 4
    Points: 0
    Rank: Member

    Thanks Matt.

    Your suggestions worked a treat and I can now use Connect-EXOnline.

    Thanks for your help.
    Andy

The topic ‘Connect-EXOnline’ is closed to new replies.