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

WARNING message appears when running on Server 2019 #13

Open
andrewrdavidson opened this issue Jan 7, 2021 · 3 comments
Open

WARNING message appears when running on Server 2019 #13

andrewrdavidson opened this issue Jan 7, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@andrewrdavidson
Copy link
Owner

andrewrdavidson commented Jan 7, 2021

Describe the bug
A warning message appears when running tests on a fresh install of Server 2019

To Reproduce
Perform a fresh install of server 2019
Install Pester
Install PSScriptAnalyzer
Install PSQualityCheck
Run a test
The warning appears:

` [+] check script contains no PSScriptAnalyzer failures 53ms (51ms|1ms)

WARNING: A command that prompts the user failed because the host program or the command type does not support user
interaction. The host was attempting to request confirmation with the following message: The Update-Help cmdlet
downloads the most current Help files for Windows PowerShell modules, and installs them on your computer. For more
information about the Update-Help cmdlet, see https:/go.microsoft.com/fwlink/?LinkId=210614.

[Multiple of the same WARNING removed for brevity]

[+] check script contains no PSScriptAnalyser SonarQube rule failures 856ms (853ms|3ms)`

Expected behavior
Message should not appear

Screenshots
n/a

PowerShell Version (please complete the following information):

  • OS: Server 2019, Server 2016
  • PowerShell Version: 5.1

RuleSets Used (please complete the following information):

  • RuleSet: indented-convention
@andrewrdavidson
Copy link
Owner Author

WORKAROUND: Running Update-Help clears the warning message

@andrewrdavidson andrewrdavidson added the bug Something isn't working label Jan 7, 2021
@andrewrdavidson
Copy link
Owner Author

andrewrdavidson commented Jan 7, 2021

When running Update-Help you get an error see: #15

@andrewrdavidson
Copy link
Owner Author

Issue also exists on Server 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant