How can connect to SharePoint online to run some PowerShell commands? It would be nice if someone has drilled down the steps for me :)
Connecting to SharePoint Online
Before you connect to SharePoint Online, you’ll need to have the username and password for an account with global administrator permissions. You’ll also need to know your tenant admin URL (i.e.:
https://mytenant-admin.sharepoint.com). When connecting to SharePoint Online, don’t forget to reference all URLs securely using https.If you try and use http, you will get an error. To connect to SharePoint Online, use the Connect-SPOService command. It takes the URL to your tenant admin and a username. When you connect, you’ll be prompted for your password.
Connect-SPOService –Url https://mytenant-admin.sharepoint.com –Credential [email protected]
If you connect successfully, you will be returned to the command prompt without error. To see what commands are available, we can use Get-Command and pass it the module Microsoft.Online.SharePoint.PowerShell.dll
Please refer to these two links from MSDN; they show everything you need to know about SharePoint Online and PowerShell.
and to your issue of how to setup PowerShell for SharePoint Online:
Install Windows PowerShell 3.0 from Windows Management Framework 3.0.
Install the SharePoint Online Management Shell from the Microsoft Download Center.
Click Start>All Programs>SharePoint Online Management Shell.
Run Connect-SPOService. For example, Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential [email protected], where:
• Url is the URL of the SharePoint Online Administration Center.
• Credential is the user name to which you want to grant access to the SharePoint Online Administration Center site.
Try it out! For example, run Get-SPOSite to get a list of all sites.
Maybe a bit late but you can use the project Client-Side SharePoint Powershell http://sharepointpowershell.codeplex.com/ as a PowerShell API to SharePoint Online. The features still need to grow, but you can extend it yourself pretty easy and otherwise just request some features.
- You need to install PowerShell depending on the bitness of your windows.
- Install Microsoft Online Services Sign-In Assistant for IT Professionals
- install Windows Azure Active Directory Module for Windows PowerShell
and test it.
Reference & for more details: https://ziaahmedshaikh.wordpress.com/2015/09/11/configure-windows-powershell-to-connect-with-o356/