Skip to content

WARNING message appears when running on Server 2019 #13

@andrewrdavidson

Description

@andrewrdavidson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions