Tips for creating an encrypted USB flash drive

  
The following is a small series to manually create a USB flash drive that requires a password to access. The principle is to use TweakUI to change the autoplay command of the USB flash drive. Step 1: First copy a small-capacity jpg and wav format file to the U disk, and then set the U disk permissions to allow only the current account (LCR) to be fully controlled. Now open Notepad and enter the following and save it as a lock.bat batch, placed in the c:\\ directory. Rem Note: To access the USB flash drive, please run the desktop “Open the USB flash drive” and enter the correct password @cacls j:\\ /e /r LCR@pause command to explain: Run the Cacls command to modify the j: (U disk) permissions To reject LCR access. Now, create a batch unlock.bat and send it to the desktop. The shortcut name is “Open the USB flash drive” and the content is as follows: @echo off@runas /user:LCR "cacls j:\\ /g LCR: f" Command Explanation: Run the cacls command again as LCR to give full control of the U disk to LCR. Step 2: Run TweakUI, expand “My Computer & Rarr; AutoPlay”, and under “Type”, select “Automatically play removable media”. Click "Create" in the "Operation" item, and then follow the prompts to create a new auto-play interface called "U-disk", click "Change Program", select "ld:;c:\\lock" .bat”, check the <quo;mixed content in the list of supported media”. Because the system pops up the playback window based on the automatically detected file type, so we put the image and music files in the U disk, so the system detects it as mixed content, and automatically executes the lock.bat file to cancel the LCR. Access rights. Step 3: Right-click on the USB flash drive and select “Attributes”. In the window that opens, click the “AutoPlay” tab, then select “Mixed Documents”, then select ““ in the action bar”. Action to execute the ” item, and select “ access U disk & rdquo; in the list. After the above settings, when the USB flash drive is inserted into the computer, the system will run the lock.bat batch process to set the current user right to deny access. If you want to access the U disk, you can run the desktop "Open U disk" shortcut, because the "runas" command requires a password, which is equivalent to the smart password set for the U disk.
Copyright © Windows knowledge All Rights Reserved