Skip to content

produces errors on Server 2012R2 #2

Open
@BustedSec

Description

@BustedSec

I ran the script after settting up a corresponding logstash filter and ended up getting nothing but red error output

At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Get-WinEvent : The data is invalid
At C:\Temp\evt2ls.ps1:53 char:9

  • $data = Get-WinEvent -FilterHashtable @{logname="*"; starttime=$starttime} |
    Con ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvali
      dDataException
    • FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Command
      s.GetWinEventCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions