I use this code to connect to the SharePoint online environment:
$username = "xxxxxxxx"
$password = "xxxxxxxx"
$credential = New-Object System.Management.Automation.PSCredentials ($username, $password)
connect-pnponline -url xxxxxxxxxxxxxxx -Credential $credential
But I get the error: The remote server returned an error (403) Forbidden
How can I solve this?
Gr, P