久しぶりのPowerShell

イベントログを取得する。
フィルタにて。

$xml = @'
<QueryList>
 <Query Id="0" Path="Security">
   <Select Path="Security">*[System[TimeCreated[@SystemTime&gt;='2010-10-14T15:00:00.000Z'
and @SystemTime&lt;='2010-10-21T15:00:00.999Z']]]</Select>
 </Query>
</QueryList>
'@
Get-WinEvent -FilterXml $xml

XMLにフィルタを記述します。
GUIでフィルタを設定すると、XMLも表示されるので使いまわせます。