株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

最近はPowershell職人の修行をしてる気がする。
Sort-Objectでソートするプロパティ名を指定して、-Uniqueで重複排除できる。
これは便利だね

Get-EventLog -LogName Application  -after 2019/07/10 | Select-Object -Property EventID,EntryType,TimeGenerated,S
ource,Message,MachineName | Sort-Object -Property EventID -Unique | Format-Table -AutoSize

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)