| |
What it is |
USBDLM is a Windows service that gives control over Window's drive letter assignment for USB drives. Running as service makes it independent of the logged on user's privileges, so there is no need to give the users the privilege to change drive letters.
It automatically solves conflicts between USB drives and network or subst drives of the currently logged on user.
Furthermore you can define new default letters for USB drives and much more.
|
|
| |
|
| |
Getting Started |
When a removable drive (USB flash drive, flash card reader, portable hard drive) is attached for the first time, Windows mounts it to the first available 'local' drive letter. If there is a network share on this letter, Windows XP will use it anyway for the new USB drive because since XP network shares are specific to the current user and not visible in the context of the system where the letter is assigned. The USB drive then appears to be invisible. This is fixed by SP3 in most situations.
You can change the letter assignments in the Windows Disk Management Console with a lot of mouse clicks but you have to do it again for every new device.
And, for USB devices that have no serial number (in violation of the USB standards) you have to do it too when you attach it to a different USB port.
USBDLM can for newly attached USB drives
- check if the letter is used by a network share of the currently logged on user and assign the next letter that is really available
- reserve letters, so they are not used for local drives
- assign a letter from a list of new default letters, also dependent on many different criteria as the active user, drive type, connection (USB, FireWire), USB port, volume label, size and others
- assign letters for a specific USB drive by putting an INI file on the drive
- remove the drive letters of card readers until a card is inserted
- show a balloon tip with the assigned drive letter(s)
- define autorun events depending on many different criteria
- many other things, see help file, available online as HTML version too
All functions are applied to USB drives at the moment they are being attached, when the USBDLM service starts up and when a user logs on.
USBDLM runs as Win32 service under Windows 2000, XP, Server 2003, Vista, windows 7 and Server 2008.
|
|
| |
|
| |
Installation |
Unzip the distribution (USBDLM.ZIP) file to "C:\Program Files" (an USBDLM folder is included).
Under Vista and Win7 I suggest a different folder, for instance "C:\Tools" to prevent trouble caused by the Windows "Virtual Store" where the USBDLM.INI might be redirected to without telling the user.
Then enter your preferred configuration into the USBDLM.INI (see below). There is a sample file
included called USBDLM_sample.INI. Either create a new USBDLM.INI or rename the sample.
If you are logged on with administrator privileges you can simply install it by starting the
_install.cmd
Without administrator privileges you will be prompted for them.
You can change the USBDLM.INI without restarting the service because it's checked each time a new drive is attached.
You can uninstall the service using parameter -uninstall:
_uninstall.cmd
Both can be done without the message box by using the following USBDLM commandline parameters
USBDLM -silentinstall
USBDLM -silentuninstall
It returns Errorlevel 0 on success, 1 on failure.
You can stop and start the installed service by means of the _stop.cmd and _start.cmd.
|
|
| |
|
| |
Configuration |
Running without a configuration USBDLM only prevents that an new drive gets the letter of
a network share or a subst drive of the currently logged on user. It remounts then to the next
letter that is really available.
USBDLM is configured thru a text file, the USBDLM.INI. The USBDLM.INI is read from the folder of the USBDLM.EXE.
If required, read at Wikipedia how
INI files work.
New default letters for new USB drives (flash or harddrive)
[DriveLetters]
Letter1=U
Letter2=Y
Letter3=Z
USBDLM can have up to 9 'LetterX' entries in each section. They don't have to be continuous.
You can also use the short notation:
[DriveLetters]
Letters=U,Y,Z
Have a look into the help file USBDLM_ENG.CHM for more details.
If you get the 'cannot display the webpage' error then the help file has the NTFS file attribute 'downloaded from untrusted source' and Microsoft doesn't trust its own CHM file format. To fix this right click the USBDLM_E.CHM, select Properties and click Unblock.
The help file is available online as HTML version too.
Card Readers
The typical 20-in-1 card reader eats one drive letter for each of its slots - if we have a
card for or not. USBDLM can remove the reader's drive letter until a media is inserted.
[Settings]
NoMediaNoLetter=1
USBDLM assigns then a drive letter as configured. If you need different drive letters for a multislot cardreader, then use the criterion 'DeviceType' in a DriveLetters section (MSCR is short for MultiSlotCardReader which can be used too):
[DriveLetters1]
DeviceType=MSCR
Letter1=R
Letter2=W
Letter3=
Excluded drive letters
You can prevent Windows mounting to certain letters by putting them into section ExcludedLetters.
This is especially useful for letters of network shares which Windows may assign to USB drives while booting. Do not configure other letters than network, subst and TrueCrypt drives here!
[ExcludedLetters]
Letter1=F
Letter2=
Letter3=
Balloon Tips
USBDLM can show a balloon tip with information about the drive letter(s) or mount points used for a just attached drive:
[BalloonTips]
Enabled=1
|
|
| |
|
| |
History |
For the complete history check out the help file which is available
online as HTML version too.
V4.2.0 (12th April 2008)
- Bugfix: problems with NTFS mountpoints longer than 51 chars fixed
- Bugfix: AutoRun programs did not become the active window under Vista
- Bugifx: Username and group membership works now when logged on on a server
- New/Bugfix: unavailable network drives considered
- New: NoMediaNoLetter works under Windows 2000 too
- New: most settings take effect without restarting the USBDLM service
- New: Wildcards can be used configuring several parameters
- New: drives can be completely ignored
- New: drives and other devices can be removed from or added to the "safely remove hardware" facility
- New: for USB drives the policy "Optimized for performance" can be set
- New: on AutoRun USBDLM variables can be made available to the executed program as environment variables
- New: on AutoRun programs can be executed without admin privileges (if the current user is an admin)
- New: obsolete NTFS mountpoints can be removed on startup
- New: several minor fixes and improvements
V4.2.1 (20th April 2008)
- Bugfix: 'Working Directory' for autorun.inf and [OnArrival] is again (as before V4.2) the root of the new drive
V4.2.2 (17th August 2008)
- Bugfix: [OnArrival], [OnRemoval] works again without configuring a workdir when the drive has no mountpoint
- Bugfix: [OnRemoval] works again without configuring a workdir
- Bugfix: [OnRemoval] is triggered on removal of a media from a card reader
- Bugfix: New BusTypes SD and MMC
- Bugfix: Virtual drives of the Vista's "Volume Shadow Copy" will not get a drive letter assigned
- Bugfix: Delay on Windows shutdown removed
V4.2.3 (14th September 2008)
- Bugfix: The execution of [OnArrival] could be suppressed by holding the Shift key even Force=1 is set
- Bugfix: The execution of the autorun.inf open line was by default made with removed admin privileges (AutoRunInfRestricted was on by default)
- Bugfix: [NoMediaNoLetterInclude] didn't work in most cases
V4.2.4 (3rd December 2008)
- Bugfix: The execution of [OnArrival] failed when the path contained spaces and commandline parameters are used
- Bugfix: The execution of [OnArrival] failed when the arrived drive has no mountpoint and no WorkDir is specified
- Bugfix: Under Windows 2000 the port names] of USB1 devices attached to USB2 ports where not determined
V4.2.5 (29 March 2009)
- Bugfix: Crippled BalloonTip if quotation mark in device name
- Bugfix: Sometimes wrong size in BalloonTip and ListUsbDrives
- Bugfix: The execution of the autorun.inf open line was in V4.2.4 (again) by default made with removed admin privileges (AutoRunInfRestricted was on by default)
V4.3.0 (30 April 2009)
- Bugfix: Volume Label sometimes not read after media change under Vista, see http://support.microsoft.com/kb/943632
- New: ListUsbDrives shows the sections from the USBDLM.INI which are used for a drive
- New: Faster operation by gathering required drive information only
- New: Multiple NTFS folders can be assingned as mount points, also in addition to a drive letter
- New: In sections [OnArrival], OnRemoval etc up to 10 commands can be executed (open1 to open9 and the known open)
- New: [OnArrival] and AutoRun.inf for TrueCrypt volumes
- New: When a DeviceID is configured then the BusType for non USB drives can be omitted, same for the DriveType e.g. for CDROM drives
- New: [OnArrival] can start a program under Vista with full rights ("elevated")
- New: Criteria UserIsAdmin is under Vista related to the "elevated" user, so it is 1 for an Admin under UAC
- New: Criteria for absence of a file (FileNotExists)
- New: [OnRemovalFailed] is executed asynchronousely to avoid event ping pong when using RemoveDrive
- New: AutoRun on System Events
- New: Handling of first time arrivals under Windows 2000 optimized
- New: Using [OnArrival], OnRemoval etc there is the new default criterion MinVolumeSize=1, so a media must be present
- New: Drive letters can be checked [on resume] from standby and hibernation mode
- New: Drive letters by Volume Serial Number
- New: Drive description for USB drives in the menu of "Safely Remove Hardware"
- New: Balloons under Vista in almost correct design
- New: Balloons with fade out effect and shadow (if activated in the Windows settings)
- New: Using USBDLM Variables for environment variables can (and should) be configured in detail
V4.3.1 (1 June 2009)
- Bugfix: Delay on Windows standby and hibernation removed
- Bugfix: Slow responding drives handled more tolerant
- Bugfix: Firewire drives have again the short, "handmade" name in the balloon tip
V4.3.2 (7 July 2009)
- Bugfix: When only NTFS mountpoints are configured in a section then an assigned drive letter was not removed
- Bugfix: Text color in the balloon tips always black even configured different in Windows
- Bugfix: ListUsbDrives shows for harddrives and removable drives the correct "Disk DosDevName" (so far it showed the PDO name)
- New: On startup USBDLM can swap drive letters in some situations if required
- New: Section numbers from 1 to 9 can be noted as 01 .. 09, e.g. [DriveLetters01]
- New: Items Letter, Letters, Letter1 bis Letter9 - all understand all formats (single letter, list of letters, mountpoint, INI file)
V4.4.0 (1 November 2009)
- Bugfix: BusTypes in list notation (e.g. BusTypes=USB,SCSI) didn't work
- Bugfix: Deactivating System Restore for new drives didn't work
- Bugfix: OnArrival did not work for drives with no media present, even MinDiskSize=- was configured
- Bugfix: ListUsbDrives now shows all sections effective for a drive
- New: x64 version available
- New: Determining USB port names causes no more delays
- New: Startup of the USBDLM service accelerated
- New: Additional search path for executables
- New: Alternative notation of the USB Port Name
- New: Letters by USB-Port much faster now
- New: Label and Icon from autorun.inf files can be used
- New: From autorun.inf on x64 systems the section [autorun.amd64] is read first
- New: autorun.inf can be read even redirected by IniFileMapping
- New: VolumeSerial criteria can be used with wildcards
- New: "BitLocker To Go" encrypted drives are recognized as such
V4.4.1 (11 November 2009)
- Bugfix: Hiding drives from the "Safely Remove Hardware" might not work under Vista, under Window 7 it still does and will not work for "Removable" drives
- Bugfix: ListUsbDrives always showed a warning about an USBDLM.INI in the Vista/Win7 virtual store
- Bugfix: Delay on service startup on some systems removed
- Bugfix: Close button on the BalloonTip might be drawn incomplete on XP
V4.4.2 (13 December 2009)
- Bugfix: Variable %UsbSerial% was empty since V4.4.0
- Bugfix: Drive letter swapping on startup not performed when the USBDLM service stated after the user's logon
- Bugfix: FileExists when used with wildcards worked only when exactly one file was found
- New: Swapping driveletters on startup can deal with more than two letters
V4.4.2.50 beta (26 Jan 2010)
- New: AutoRun works for remote users
- New: AutoRun for other devices than drives
|
|
| |
|
| |
Purchase USBDLM |
Prices with effect from May 2009
(Euro prices are constant, USD prices are floating):
| Quantity: |
Price per licence |
| 1 - 9 |
15.00 USD |
| 10 - 99 |
9.00 USD |
| 100 - 999 |
6.75 USD |
| 1000 - 9999 |
4.50 USD |
| >10000 |
2.25 USD |
| Site Licence |
2250.00 USD |
| World-Wide Licence |
9000.00 USD |
A Site License allows anyone in the organization making the purchase, within a 160 km (100 mile) radius of the purchasing location, to use the software. This includes people from that organization location who are travelling but it does not include people with locations outside of the 160 km radius.
A World-Wide License allows anyone in the organization making the purchase, who is on the planet Earth, to use the software.
You can order directly at me, I send offer and invoice on request.
An online order is possible at the KAGI online Shop (USA, California) with credit card, check or cash. VAT is charged depending on your country and can be skipped by having a VAT ID number.
The licence is delivered as licence number by eMail or on the invoice. It's not required for the software, the software is not limited in any way and it does not expire.
KAGI Online Shop (USA, California)
All licences are not limited in time and valid for future versions too. All updates are free of charge. Purchasers of V1.x, 2.x and 3.x are free to use V4.x.
|
|
| |
|
| |
Plans |
|
No more big plans at the moment. Everything I ever had in mind for USBDLM is implemented in USBDLM V4.
Plans for a graphical configuration tool are stalled at the moment because I've no idea how it should look like to be more efficient than the INI files.
|
|
| |
|
Counter since Feb. 1998
last change: 27 Jan 2010

The phone number is here because of the strange german law. Please don't call me, write an eMail instead.
Home: http://www.uwe-sieber.de/english.html
|