Add scripts
This commit is contained in:
parent
422934aef7
commit
350807c951
30 changed files with 574 additions and 0 deletions
21
Scripts/Log-Reboot.ps1
Normal file
21
Scripts/Log-Reboot.ps1
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
$query = '
|
||||
<QueryList>
|
||||
<Query Id="0" Path="System">
|
||||
<Select Path="System">
|
||||
*[
|
||||
System[
|
||||
EventID=41 or
|
||||
EventID=1074 or
|
||||
EventID=1076 or
|
||||
EventID=6005 or
|
||||
EventID=6006 or
|
||||
EventID=6008 or
|
||||
EventID=6009 or
|
||||
EventID=6013
|
||||
]
|
||||
]
|
||||
</Select>
|
||||
</Query>
|
||||
</QueryList>
|
||||
'
|
||||
Get-WinEvent -LogName System -FilterXPath $query
|
||||
Loading…
Add table
Add a link
Reference in a new issue