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

[BUG] Get-LogonFailureReason stream pollution #45

Open
joshwright10 opened this issue Jan 21, 2021 · 0 comments
Open

[BUG] Get-LogonFailureReason stream pollution #45

joshwright10 opened this issue Jan 21, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@joshwright10
Copy link

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
@joshwright10 joshwright10 added the bug Something isn't working label Jan 21, 2021
joshwright10 added a commit to joshwright10/PoShEvents that referenced this issue Jan 21, 2021
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

2 participants