Tweaking.com Forums

Main Forum => User Submitted Tweaks & Guides => Topic started by: Julian on August 02, 2017, 10:29:29 PM

Title: navigating eventviewer for chkdsk log on boot
Post by: Julian on August 02, 2017, 10:29:29 PM
After running the command chkdsk /f at boot to check your harddrive, Finding the log in event viewer can be hard to some people so I wrote a simple command to run in powershell after the computer boots up just type in this
Code: [Select]
(Get-EventLog -LogName Application -Source wininit | Select-Object -Last 1 -ExpandProperty message) | out-file -filepath $env:homepath\desktop\chkdsk.txt that should place a txt file named chkdsk on your desktop so you can easily view the log without having to navigate the event log and look for it.