Hi @Jayesh Kashte
This is due to the DLL Version mismatch. To resolve the issue, follow these steps:
- Uninstall SharePoint Online Management Shell and SharePoint Online Client SDK if installed.
- Delete SharePoint Online Client Assemblies from: C:\Windows\Microsoft.NET\assembly\GAC_MSIL, remove all Folders starting with name: Microsoft.SharePoint
- Uninstall the module with “Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell -AllVersions” and reinstall SharePoint Online Management Shell and the module “Install-Module -Name Microsoft.Online.SharePoint.PowerShell”
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.