Skip to content

[BUG] Get-LogonFailureReason stream pollution #45

Open

Description

@joshwright10

Describe the bug
The System.Text.StringBuilder Append() method outputs a System.Text.StringBuilder object which is shown in the pipeline when called.

This can be resolved by using [void]. For example:
[void]$LogonFailureReason.Append("Reason")

To Reproduce
Call Get-LogonFailureReason and match any of the switch statements.

Expected behavior
No output should be seen, other than the final output object that is expected.

PowerShell Environment (please complete the following information):

  • OS: Windows 10
  • Edition: desktop
  • Version: 5.1.18362.1171
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions