系统相关
首页 > 系统相关> > windows的USB插拔事件日志

windows的USB插拔事件日志

作者:互联网

目的:セキュリティ強化_USB挿抜ログ

 バッチファイル作成:
 監視機能↓
 WindowsでUSBを指す時にログ生成して出力するもの


方案1:
https://triton.casey.jp/portable/usblogview/
  usblogviewダウンロードした、使える

方案2: → 有料になるため廃棄
https://prtimes.jp/main/html/rd/p/000000017.000017223.html
  LB USBロック Plus 2019年7月31日をもちまして、本製品のダウンロードを終了したことになる

方案3:
--------PowerShellで実施手順---------------
・PowerShellでログが有効化されているか確認 下記のコマンドに入力する
    $LogName = "Microsoft-Windows-DriverFrameworks-UserMode/Operational"
    $CurrentConfig = Get-WinEvent -ListLog $LogName
    $currentConfig.isEnabled
    
・Falseの場合に有効化にする必要:(有効化する手順↓) 
    イベントビューアーを起動する
    WIN+Rキーを押して、eventvwr.mscと入力する
    左ペインからメニューをたどり、アプリケーションとサービスログ → Microsoft → Windows → DriverFrameworks-UserMode → Operational を開く
    Application and Services Logs > Microsoft > Windows > DriverFrameworks-UserMode > Operational
    デフォルトではログは無効化されているので、右ペインの操作から、「ログの有効化」を行う

・PowerShellで下記のコマンドに入力する
    Get-WinEvent -FilterHashtable @{Logname='Microsoft-Windows-DriverFrameworks-UserMode/Operational'}| Export-Csv -Encoding UTF8 -LiteralPath "C:\Users\s-ss010\Desktop\log\usb_event_log.csv" -NoTypeInformation 

标签:插拔,USB,windows,Operational,Windows,DriverFrameworks,UserMode,Microsoft
来源: https://blog.csdn.net/qq_15623599/article/details/111357265