M
markfilipak-
Guest
I usually avoid posting multiple issues, but these are so closely related that to not post everything I've experienced would be silly.
=====
ISSUE #1: When run in Powershell,
PS D:\> Get-WinEvent > Get-WinEvent.txt
does not redirect (i.e., Get-WinEvent.txt is zero-byte), and the screen overflows so that only the last few hundred output lines are shown.
=====
ISSUE #2: When run outside Powershell,
D:\>powershell Get-WinEvent > Get-WinEvent.txt
does redirect (Get-WinEvent.txt = 1234027 bytes).
=====
ISSUE #3: Here is the content of Get-WinEvent.txt:
Get-WinEvent : The data is invalid
At line:1 char:1
+ FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Commands.GetWinEventCommand
...4468 more occurances of the above section, plus this last section:
Get-WinEvent : No events were found that match the specified selection criteria.
At line:1 char:1
+ FullyQualifiedErrorId : NoMatchingEventsFound,Microsoft.PowerShell.Commands.GetWinEventCommand
=====
QUESTION #1: Why the Powershell redirection problem (ISSUE #1)?
QUESTION #2: Why the Get-WinEvent problem (ISSUE #3)?
More...
=====
ISSUE #1: When run in Powershell,
PS D:\> Get-WinEvent > Get-WinEvent.txt
does not redirect (i.e., Get-WinEvent.txt is zero-byte), and the screen overflows so that only the last few hundred output lines are shown.
=====
ISSUE #2: When run outside Powershell,
D:\>powershell Get-WinEvent > Get-WinEvent.txt
does redirect (Get-WinEvent.txt = 1234027 bytes).
=====
ISSUE #3: Here is the content of Get-WinEvent.txt:
Get-WinEvent : The data is invalid
At line:1 char:1
- Get-WinEvent
- ~~~~~~~~~~~~
+ FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Commands.GetWinEventCommand
...4468 more occurances of the above section, plus this last section:
Get-WinEvent : No events were found that match the specified selection criteria.
At line:1 char:1
- Get-WinEvent
- ~~~~~~~~~~~~
+ FullyQualifiedErrorId : NoMatchingEventsFound,Microsoft.PowerShell.Commands.GetWinEventCommand
=====
QUESTION #1: Why the Powershell redirection problem (ISSUE #1)?
QUESTION #2: Why the Get-WinEvent problem (ISSUE #3)?
More...