Required Software
Windows Management Framework 3.0
SharePoint Online Management Shell
Connect to SharePoint Online
1. Open SharePoint Online Management Shell
a. Click Start
b. Click All Programs
c. Click SharePoint Online Management Shell
d. Right Click SharePoint Online Management Shell and run as Administrator
2. Run the following command, modified for your own tenant
Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com
-Url is the URL of the SharePoint Online Admin Centre
-Credential is the user that has admin access to the SharePoint Online service