Home Dashboard Directory Help
Search

Get-WinEvent - The data is invalid by ThomasICG


Status: 

Active


11
0
Sign in
to vote
Type: Bug
ID: 800980
Opened: 9/16/2013 10:29:11 AM
Access Restriction: Public
0
Workaround(s)
view
6
User(s) can reproduce this bug

Description

I cannot use get-WinEvent on any of my Windows 8 computers. I have heard from others from the internet that they are not experiencing the same issue. So i maybe thinking it's releated to the Danish version. Tried changing locale though, no change.
Details
Sign in to post a comment.
Posted by Joseph1000010 on 11/11/2013 at 5:52 PM
I a couple months back when I noticed that one of my scripts which used get-winevent returned exceptions when run on windows 8 and powershell v3.

Error message (repeats for every event queried from the log):
get-winevent : The data is invalid
At line:1 char:1
+ get-winevent
+ ~~~~~~~~~~~~
    + CategoryInfo         : NotSpecified: (:) [Get-WinEvent], EventLogInvalidDataException
    + FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Commands.GetWinEventCommand

I started to troubleshoot, I ran the same commands that failed on windows 8 on several different computers to see if it worked or not:
Windows 8.1 - PowerShell V4: Failed
Windows 8 - PowerShell V3: Failed
Windows 7 - PowerShell V3: Succeeded
Windows 7 - PowerShell V2: Succeeded
Server 2008 R2 - PowerShell V2: Succeeded
Server 2008 R2 - PowerShell V3: Succeeded

I asked sever other people running windows 8 to test this, the command returned the error for every single one of them without exception. This but has been around for two stable releases of PowerShell, why has it not been fixed yet.
Posted by ThomasICG on 10/25/2013 at 8:05 AM
Has anyone from MS seen this, there has been no comments and it's been over a month?
Sign in to post a workaround.