Manage USB Drives

  • Download USBDLM and follow the instructions from Uwe's website.
  • Unzip and copy the directory “USBDLM” to C:\Program Files.
  • Win-X, then run PowerShell as Administrator. Go to USBDLM and run “_service_register.cmd”
  • Run “_edit-ini.cmd” and copy below file content.
  • To be able to run an app on startup when a specific USB is plugged in, use Windows' “Task Scheduler”
  • Instructions to find the DeviceID of the USB drive
; More information in the help files USBDLM_ENG.CHM (English)

;------------------------------ Settings -------------------------------------

; here you can let USBDLM write a logfile, default is _USBDLM.LOG in the root of the Windows drive
; higher loglevel generate more output

; NoMediaNoLetter make USBDLM remove driveletters as long as there is no media present in the drive
; 1: multislot cardreaders
; 2: single slot cardreaders too
; 3: any USB removable drive

; enforce executables being quoted if the commandline contains spaces, e.g.
; wrong: open=C:\Program Files\test.exe
; right: open="C:\Program Files\test.exe"
; wrong: open=C:\Tools\test.exe /X
; right: open="C:\Tools\test.exe" /X

; USBDLM can watch for new USB keyboards and ask the user on arrival if this is a real one.
; Manipulated "bad" USB devices can emulate a keyboard to simulate keystrokes
; for downloading and executing malware.
; Caution: On KVM switches each switching makes the USB keyboard appear as newly arrived device.
; Put its port name in section [BadUsbWhiteList], UsbDriveInfo shows it under "My Computer".
; same thing for network devices


;---------------------------- Balloon Tips ------------------------------------
; this activates balloon tips and sets their show duration in milliseconds

; this makes USBDLM suppressing the Windows balloon tips on drive arrival and removal
; 0: off
; 1: close the Windows balloon

;----------------------------- Drive Letters ----------------------------------

; here you can define new default drive letters for all USB drives in order of arrival,
; for instance Letters=U,V,W

; open new drives in an Explorer Window
; [OnArrival]
; open="%windir%\explorer.exe" %root%

; open new drives in an Explorer Window on balloon-click
; [OnBalloonClick]
; open="%windir%\explorer.exe" %root%