Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can connect to SharePoint online to run some PowerShell commands? It would be nice if someone has drilled down the steps for me :)

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

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 admin@mytenant.onmicrosoft.com

enter image description here

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

For more information check this link out,

http://dotnet.sys-con.com/node/2465770

Hope it helps.

share|improve this answer
add comment

please refer to these two links form msdn!

shows everything you need to know about sharepoint online and powershell

http://technet.microsoft.com/en-us/library/fp161362(v=office.15)

and your issue

how to setup powershell for sharepoiont online

  1. Install Windows PowerShell 3.0 from Windows Management Framework 3.0.

  2. Install the SharePoint Online Management Shell from the Microsoft Download Center.

  3. Click Start>All Programs>SharePoint Online Management Shell.

  4. Run Connect-SPOService. For example, Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com, 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.

  5. Try it out! For example, run Get-SPOSite to get a list of all sites.

http://technet.microsoft.com/en-us/library/fp161372

hope it helps :)

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.