I have owner right of a teamsite. But I am no tenant administrator. I only want access with PowerShell to my own teamsite not to the whole farm. But I found this code below to logon to sharepoint-online with administrative-rights.
$username = "my email-address" $password = "my password" $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force) Connect-SPOService -Url https://mydomain-admin.sharepoint.com -Credential $cred
Running the code leads to an error saying that I am not a tenant-administrator. Is it possible to connect to just the teamsite and not the whole farm?