I am hosted by godaddy, i am trying to log on using this tag:
$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
After entering all necessary info, i receive this error:
Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind : The term
'Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Onlin...SpoSitePipeBind:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException