Prashant Kumar

Prashant Kumar

  • 210
  • 8.8k
  • 3.2m

Cannot load PSReadline module. Console is running without PS

Nov 30 2017 7:37 AM
Hello All,
 
Getting below error when trying to open SharePoint Online Managment Shell.
Cannot load PSReadline module. Console is running without PSReadline.
Import-Module : Errors occurred while loading the format data file:
C:\Program Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml, , C:\Program
Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml: The file was skipped
because of the following validation exception: File C:\Program Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml cannot be loaded. A
certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider..
At line:1 char:1
+ Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
Please suggest.

Answers (2)