In this article, I'll show you how to connect to SharePoint Online with the help of a PowerShell module.
Download and then Install SharePoint Online Management Shell from the following link:
Connecting to SharePoint Online
- Open PowerShell with elevated privileges
- Execute the following command
Connect-SPOService –Url https://<name of tenant>-admin.sharepoint.com –Credential <suppose email@example.com>
How to Connect to SharePoint Online With the help of PowerShell Module