Powershell - Connect to Sharepont Online (Office 365)

$adminUPN="YOUR_ADMIN_USER_EMAIL"
$orgName="YOUR_COMPANY_SHAREPOINT_NAME"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url "https://$orgName-admin.sharepoint.com" -Credential $userCredential


  • Posted on 15 August, 2017
  • by Administrator
  • powershell