Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Check Disk (chkdsk) - Read Event Viewer Log

19 Mar 2016   #90

win 7 pro x64
Command version can be fixed for Powershell 2.0

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by pxfragonard View Post
Hmm, method two works great for my Windows 7 machine but doesn't for the Vista machine. I get this message in powershell (image included, couldn't copy/paste.

I'm afraid that command requires at least PowerShell 4.0, and it doesn't appear to support Vista.

Download Windows Management Framework 4.0 from Official Microsoft Download Center
I, too, discovered that the command did not work for me in Win 7 sp1 64bit, under Powershell 2.0. The problem is that "Desktop" cannot be used as is.

However, it is possible to fix it to work thus:

PS C:\> get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.
providername -match "wininit"} | fl timecreated, message | out-file $env:UserPro
This of course depends on the env variable existing and one's desktop actually being in the user folder, and not somewhere else.

It is probably also possible to use

which returns the correct path for me, but I haven't figured out how to use it in the Powershell command. That would be a better solution, since it would still work if the desktop had been relocated.


My System SpecsSystem Spec
19 Mar 2016   #91

win 7 pro x64

A couple more comments on the Powershell command method.

1. Why even bother with figuring out where the desktop is? Why not just redirect the output to a file you actually want it in:

get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_. providername -match "wininit"} | fl timecreated, message >> path-of-where-I-want-to-put-it.txt
That way, we don't care how to find the desktop.

2. Usually, one only wants the last chkdsk result, but the command returns multiple ones. It's not clear to me how to have it spit out only the last one?
My System SpecsSystem Spec
19 Mar 2016   #92

win 7 pro x64

Oh, and yet another comment. The log file that is produced with the command version is in unicode, which is double the size actually needed, unless there are actual unicode characters, and is not very readable with an editor that does not understand unicode. The easiest way I have found to convert a unicode file to an ascii file is the windows shell command:

type existing-unicode-filename > new-ascii-filename
My System SpecsSystem Spec

 Check Disk (chkdsk) - Read Event Viewer Log

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search

Similar help and support threads
Windows 7 Tutorial Category
Wake Source - Read Event Viewer Log
How to Read the Wake Source Log in Event Viewer for Vista, Windows 7, and Windows 8 This will show you how to read the wake source log in the Event Viewer to see what device, task, or etc... has woke up your computer from sleep or hibernation at listed dates and times. You must be logged in...
Memory Diagnostics Tool - Read Event Viewer Log
How to Read Event Viewer Log for Windows Memory Diagnostics Tool This will show you how to read the Event Viewer log to see the results of the Windows Memory Diagnostics Tool in Vista, Windows 7, and Windows 8. If you just ran the Windows Memory Diagnostics Tool, then it may take a bit...
In Event Viewer, Where is event log for cleanmgr.exe (Disk Cleanup)?
I tried a lot, but couldn't find the event log for the cleanmgr.exe (Disk Cleanup) in the Event Viewer. Actually, I need the source & event id of cleanmgr.exe to schedule a task in the Task Scheduler. :confused:
Performance & Maintenance
CHKDSK - Event Viewer Doesn't Display Full Log
Checking file system on C: The type of the file system is NTFS. Volume label is CrossHair. A disk check has been scheduled. Windows will now check the disk. CHKDSK is verifying files (stage 1 of 5)... 364288 file records processed. ...
Performance & Maintenance
Locating chkdsk log in Event Viewer
Hi experts! :) If I were looking for the resultant log from chkdsk in the Event viewer on W7, which would I look for? Wininit or Winlogon? I thought Wininit was/is associated with XP and Winlogon for Vista and above? Thank you, Donna :geek:
Performance & Maintenance
Check disk failing, disk read errors, blue screen, computer going slow
As of late my PC has been going very slow, stuttering, freezing for a minute occasionally, and sometimes when I restart I get a disk read error that requires me to turn the PC off and on again. I ran check disk using command prompt, it got to 12% before it said it had found corrupt files, now it...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:34.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App