SharePoint Online PowerShell – Get started, issues and development

Get started 1. Download and open the SharePoint Online Management Shell Link: https://www.microsoft.com/en-us/download/details.aspx?id=35588 Open the shell (run as administrator) 2. Proxy authentication (Optional)
1 2 |
$cred = [System.Net.CredentialCache]::DefaultCredentials [System.Net.WebRequest]::DefaultWebProxy.Credentials = $cred |
3. Connect to your SharePoint Online Simple:
1 |
Connect-SPOService -Url "https://<mydomain>-admin.sharepoint.com" -Credential "<myname>@<mydomain>.com" |
It will ask you for password. Complete: For more information: https://technet.microsoft.com/en-us/library/fp161372.aspx
1 2 3 4 |
$adminUPN="<the full email address of a SharePoint Online global administrator account, example: jdoe@contosotoycompany.onmicrosoft.com>" $orgName="<name of your Office 365 organization, example: contosotoycompany>" $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password." Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential |
Issues Import Module issue Run SharePoint Online Management Shell in administrator […]