WARNING message appears when running on Server 2019
andrewrdavidson opened this issue · 3 comments
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
WORKAROUND: Running Update-Help
clears the warning message
When running Update-Help
you get an error see: #15
Issue also exists on Server 2016