Skip to content

[BUG] Get-LogonFailureReason result not always returned #46

@joshwright10

Description

@joshwright10

Describe the bug
Failure reason is not returned if the first switch statement matches and adds content to the $LogonFailureReason variable.

To Reproduce
Match one of the statements in the first switch statement which looks at $EventRecord.FailureReason

Expected behavior
$LogonFailureReason.ToString() should be placed one level up, and not be nested in the current IF statement.

PowerShell Environment (please complete the following information):

  • OS: Windows 10
  • Edition desktop
  • Version 5.1.18362.1171

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions