Here is my case, I am building a tool for my office which can auto diagnose BSOD errors. I am using PowerShell to build this. I have isolated the file which has the location of the file I need in it. But I need to be able to search for the string "These files may be available here: " and return the next line. (I am sure this is an easy command I am missing but I am relatively new to this)
If anyone has any ideas on this I would really appreciate it.
The code I am using to find my BSOD log is this:
$bsod = Get-EventLog -LogName application -Newest 100 -Source ‘Windows Error*' | select timewritten, message | where message -match ‘bluescreen’ | ft -auto -wrap
If there is another way to harvest a BSOD stop code let me know.
Environment: Windows 10 on a Dell Laptop. Has access to Admin Perms.