Bootstrap

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-UserM

;