Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting ShowBanner error try to run #5

Closed
tjkynot opened this issue Dec 26, 2020 · 1 comment
Closed

Getting ShowBanner error try to run #5

tjkynot opened this issue Dec 26, 2020 · 1 comment

Comments

@tjkynot
Copy link

tjkynot commented Dec 26, 2020

Windows 10 > Run As Admin > Same error connecting to Connect-ExchangeOnline

PS C:\WINDOWS\system32> $UserCredential = Get-Credential
PS C:\WINDOWS\system32> Connect-MsolService -credential $usercredential
PS C:\WINDOWS\system32> cd d:\temp
PS D:\temp> .\Get-CRTReport.ps1
[2020-12-26 23:38:04Z] - Checking for PowerShell module prerequisites
NOTE: Using default authentication. This method will prompt you for login credentials 3 times.
[2020-12-26 23:38:09Z] - Beginning authentication
[2020-12-26 23:38:09Z] - Authenticating to Exchange Online
A parameter cannot be found that matches parameter name 'ShowBanner'.
At D:\temp\Get-CRTReport.ps1:406 char:9

  •     throw $_.Exception.Message
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (A parameter can...e 'ShowBanner'.:String) [], RuntimeException
    • FullyQualifiedErrorId : A parameter cannot be found that matches parameter name 'ShowBanner'.
@tjkynot tjkynot closed this as completed Dec 27, 2020
@tjkynot
Copy link
Author

tjkynot commented Dec 27, 2020

There were multiple versions of ExchangeOnlineManagement. Once the older version was uninstalled the script worked great.

uninstall-Module -Name ExchangeOnlineManagement -AllVersions
install-Module -Name ExchangeOnlineManagement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant