Install the SharePoint Online Management Shell by downloading and running the https://www.microsoft.com/en-us/download/details.aspx?id=35588 or installing module from the PowerShell Gallery https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell/16.0.19223.12000
If your operating system is using PowerShell 5 or newer, you can install Sharepoint Online Management Shell also by running following command in administrative mode.
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
To open the SharePoint Online Management Shell command prompt, from the Start screen, type sharepoint, and then click SharePoint Online Management Shell.
If your operating system is using PowerShell 5 or newer, you can install Sharepoint Online Management Shell also by running following command in administrative mode.
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
To open the SharePoint Online Management Shell command prompt, from the Start screen, type sharepoint, and then click SharePoint Online Management Shell.
To connect with a user name and password
Fill in the values for the $adminUPN and $orgName variables (replacing all the text between the quotes, including the < and > characters), and then run the following commands at the SharePoint Online Management Shell command prompt:
$adminUPN="<the full email address of a SharePoint administrator account, example: anjan@anjantech.com>"
$orgName="<name of your Office 365 organization, example: anjantech>"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://$anjantech-admin.sharepoint.com -Credential $userCredential
No comments:
Post a Comment