ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Powershell and O365: Unable to connect / Starting point

    IT Discussion
    powershell o365 office 365
    3
    8
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      I've not had any luck following MS Technet or other Google-Fu'ed items on getting my connected setup on PS.

      MS Technet

      O365 cmdlets

      I'm not pressured on learning it,.. but I need to generate a report and do some other tasks and could use some pointed directions.

      ? 1 Reply Last reply Reply Quote 1
      • ?
        A Former User @gjacobse
        last edited by

        @g.jacobse said:

        I've not had any luck following MS Technet or other Google-Fu'ed items on getting my connected setup on PS.

        https://technet.microsoft.com/en-us/library/jj984289(v=exchg.150).aspx

        1 Reply Last reply Reply Quote 1
        • gjacobseG
          gjacobse
          last edited by

          I get to step three and fails:

          ps-o365error.png

          1 Reply Last reply Reply Quote 0
          • gjacobseG
            gjacobse
            last edited by

            Attempted again this morning to ensure I wasn't missing a step or doing something incorrectly... Same error message.

            When the login box comes up,.. I am supposed to use my O365 user account and password - which is an admin account.

            Correct?

            1 Reply Last reply Reply Quote 0
            • A
              amytabor
              last edited by

              Try setting the execution policy (set-executionpolicy unrestricted) then run get-executionpolicy to confirm that it is set to unrestricted.

              If that doesn't work, exit out of PowerShell and then re-open with Run as Administrator (right click on the PowerShell application icon and choose Run as Administrator).

              1 Reply Last reply Reply Quote 1
              • gjacobseG
                gjacobse
                last edited by

                I will have to try that @amytabor, I did run PS in admin mode,..

                I'd run it now, but I am about 60 miles from my desk and dealing with some lag issues.

                A 1 Reply Last reply Reply Quote 1
                • A
                  amytabor @gjacobse
                  last edited by

                  Good luck, @g.jacobse. Let us know how it goes.

                  1 Reply Last reply Reply Quote 1
                  • gjacobseG
                    gjacobse
                    last edited by

                    Thanks @amytabor - That seemed to have worked. Now I have a long list of commands,.. of which to de-cypher.
                    There are some reports I wish to setup, and have available for later use.

                    And how to save that information to Excel or other forms....

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post