+ Post New Thread
Results 1 to 4 of 4
Cloud Services Thread, [Office 365] SSO Powershell Connect-MsolService Fails in Technical; Right, has anyone managed to find exactly the right components and orientation of stars and planets MS wants to actually ...
  1. #1

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785

    Question [Office 365] SSO Powershell Connect-MsolService Fails

    Right, has anyone managed to find exactly the right components and orientation of stars and planets MS wants to actually use this. Tried following their instructions to install the Windows Azure Active Directory Module for Windows PowerShell and the desktop tools for the signon bit only to have it claim I had the wrong version, six reinstalls later with different versions scattered around MS I gave up and used a reg hack to fake the version number so the damn thing would install.

    Now when trying t connect it gives me this lovely informtive error:
    Connect-Msolservice : The type initializer for
    'Microsoft.Online.Administration.Automation.Connec tMsolService' threw an
    exception.
    At line:1 char:1
    + Connect-Msolservice
    + ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: ( [Connect-MsolService], Typ
    eInitializationException
    + FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Onl
    ine.Administration.Automation.ConnectMsolService
    The internet is even less informative.

    How much more of a pain could they make it, I long for a simple exchange/sharepoint/lync on premise server that you can at least log in to and seemingly takes less time to setup.

    Anyone got any ideas on this?

    @EduTech

  2. #2

    Join Date
    Oct 2005
    Location
    mnah mnah!
    Posts
    1,124
    Thank Post
    274
    Thanked 227 Times in 173 Posts
    Rep Power
    113
    I can connect just fine with Connect-MSolService -credential $cred

    If it still fails with that, have you looked at "Connect-MsolService: Exception of type was thrown" error when you use the connect-MSOLService cmdlet to connect to Office 365, Windows Azure, or Windows Intune

  3. Thanks to Roberto from:

    SYNACK (5th March 2014)

  4. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785
    Found it, I just had to use the older Beta tools

  5. #4

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,078
    Thank Post
    160
    Thanked 940 Times in 732 Posts
    Blog Entries
    3
    Rep Power
    275
    Hi Mate,

    The following Article will ensure that you have the correct version of the Sign-In Assistant and PowerShell Module: Manage Windows Azure AD using Windows PowerShell

    Microsoft Online Services Sign-In Assistant for IT Professionals BETA > Download Microsoft Online Services Sign-In Assistant for IT Professionals BETA from Official Microsoft Download Center

    is the latest version, although it says BETA it is the production version that should be used.

    Sorry for the delay, I didn't see the thread straight away mate.

    James.

  6. Thanks to EduTech from:

    SYNACK (6th March 2014)



SHARE:
+ Post New Thread

Similar Threads

  1. Office 365 Licensing Powershell Query
    By Mr.Ben in forum Cloud Services
    Replies: 13
    Last Post: 22nd April 2014, 08:15 PM
  2. Certificates Needed for Office 365 SSO/ADFS
    By Squan_JRP in forum Cloud Services
    Replies: 0
    Last Post: 8th January 2014, 07:06 AM
  3. Office 365 DirSync loses connection
    By Marshall_IT in forum Cloud Services
    Replies: 0
    Last Post: 31st July 2013, 12:45 PM
  4. Office 365 SSO
    By coop1984 in forum Cloud Services
    Replies: 0
    Last Post: 28th June 2013, 10:41 AM
  5. Office 365 Useful Powershell
    By sottonk in forum Cloud Services
    Replies: 2
    Last Post: 8th March 2013, 02:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •