Windows 10: Read Chkdsk Log in Event Viewer in Windows 10  

Page 2 of 2 FirstFirst 12
  1. Brink's Avatar
    Posts : 32,340
    64-bit Windows 10 Pro build 18242
    Thread Starter
       18 Aug 2018 #10

    Superfly said: View Post
    Shawn, you missed the switch in match (-match)

    Ah, that's what it is. For some reason the "-" didn't get included with the switch when copied and pasted from the tutorial.
      My ComputersSystem Spec

  2.    4 Weeks Ago #11

    Brink said: View Post
    Hello Stan, and welcome to Ten Forums.

    Hmm, I'm getting the same thing as well.

    I'm not sure if it's a temporary bug or something has changed yet. I'll keep looking into it to see if I find anything.
    thank you. as i recall, last year i had a bat file that worked to do this, but now i can't find it
      My ComputerSystem Spec

  3.    4 Weeks Ago #12

    stanvacek said: View Post
    thank you. as i recall, last year i had a bat file that worked to do this, but now i can't find it
    i got it

    best regards

    thank you for all your work

    following work
    get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername –match "wininit"} | fl timecreated, message | out-file c:\now\CHKDSKResults.txt
    Out-File
    The Out-File cmdlet sends output to a file. use this cmdlet instead of the redirection operator (>) when you need to use its parameters
    PowerShell
    PS C:\> Get-Process | Out-File -filepath C:\Test1\process.txt < does not work
    Get-Process | Out-File -filepath C:\now\process.txt < works
    This command sends a list of processes on the computer to the Process.txt file. If the file does not exist, Out-File creates it. Because the name of the FilePath parameter is optional, you can omit it and submit the equivalent command
    Get-Process | Out-File C:\now\process.txt
    Optional Parameters
    -WhatIf
    Shows what would happen if the cmdlet runs. The cmdlet is not run.
    Get-Process | Out-File -WhatIf C:\now\process4.txt < works

    Out-Printer
    • The Out-Printer cmdlet sends output to the default printer
    • following work
    • Get-Process | Out-Printer
    • Get-Content c:\now\950innow.txt | Out-Printer
    • Get-Content 951copiedtorootthendeletedfromnow.txt | Out-Printer
    • get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername –match "wininit"} | fl timecreated, message | out-printer
    • get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername –match "wininit"} | fl timecreated, message | lp
    • You can also refer to Out-Printer by its built-in alias, lp. For more information, see about_Aliases.
    • The cmdlets that contain the Out verb (the Out cmdlets) do not format objects; they just render them and send them to the specified display destination. If you send an unformatted object to an Out cmdlet, the cmdlet sends it to a formatting cmdlet before rendering it.
    • The Out cmdlets do not have parameters for names or file paths. To send data to an Out cmdlet, use a pipeline operator (|) to send the output of a Windows PowerShell command to the cmdlet. You can also store data in a variable and use the InputObject parameter to pass the data to the cmdlet. For more information, see the examples.
    • Out-Printer sends data, but it does not emit any output objects. If you pipe the output of Out-Printer to Get-Member, Get-Member reports that no objects have been specified.
    • Related Links Out-File Out-String
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Tutorial Categories

Read Chkdsk Log in Event Viewer in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
Performance & Maintenance Clear All Event Logs in Event Viewer in Windows in Tutorials
How to Clear All Event Logs in Event Viewer in Windows Event Viewer is a tool that displays detailed information as event logs about significant events on your PC. Event logs are special files that record significant events on your PC,...
Hello everyone, I keep seeing this error appear several times a day, even during idle, in my Event Viewer. I did a clean install of build 10586 less than a month ago. I'm not having any overt issues yet, but the error is disturbing. ...
EDIT: ARGH, sorry, meant to post this in General Discussion forum, I have no idea if it is a network issue. Hello everyone, I keep seeing this error appear several times a day, even during idle, in my Event Viewer. I did a clean install of...
Computer was rock solid in windows 8, updated to 10, SSD drive died got replacement(was a refurbished from the manufacturer.) Been getting random crashes, and have been unable to force a specific crash parameter. Usually running game/chrome/OBS...
Event ID 5 Kernel-General error in Event Viewer in AntiVirus, Firewalls and System Security
Welcome, I have a problem. Every day I have this error in event viewer, system log: {Registry Hive Recovered} Registry hive (file):\??\C:\ProgramData\Malwarebytes\Malwarebytes...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 04:43.
Find Us