One of the biggest advantages of the command list is the ability to create batch files (.bat) to automate unlocking processes.
Sample Batch Script (unlock_modem.bat):
@echo off
echo Starting Auto-Unlock Script...
echo.
REM Navigate to tool directory
cd "C:\Program Files\DC-Unlocker"
REM Detect Device
echo Detecting device...
dc-unlocker.exe ^detect
timeout /t 2
REM Read Info
echo Reading device info...
dc-unlocker.exe ^info
timeout /t 2
REM Check Credits
echo Checking credits...
dc-unlocker.exe ^credits
timeout /t 2
REM Perform Unlock
echo Attempting unlock...
dc-unlocker.exe ^unlock
echo.
echo Process Complete. Press any key to exit.
pause >nul
| Command | Description |
|---------|-------------|
| port <port_number> | Switch to another COM port |
| ports | List available COM ports |
Commands in DC-Unlocker can be grouped by purpose:
Network Lock and Unlock
Firmware and Bootloader Operations
Diagnostic and Repair
Security and Protection Operations
Miscellaneous Utilities
Connect via terminal (PuTTY, HyperTerminal, or DC-Unlocker’s built-in terminal) on the modem’s COM port.
| Command | Function |
|---------|----------|
| ATI | Manufacturer, model, firmware version |
| AT^HWVER | Hardware version (Huawei) |
| AT^U2DIAG=0 | Enable modem as only modem (no CD-ROM) |
| AT^U2DIAG=1 | Enable CD-ROM + modem |
| AT^U2DIAG=255 | Enable all functions (modem, CD-ROM, debug) |
| AT^SETPORT="FF" | Open all ports (Huawei) |
| AT^CARDMODE=1 | Change router to modem mode (some Huawei) |
| Command | Description |
|---------|-------------|
| unlock | Unlock the device (requires credits) |
| readcode | Read unlock code from server (credits deducted) |
| unlock <code> | Unlock with manually provided code (no credits) |
DC-Unlocker is one of the most powerful and widely used tools for unlocking, repairing IMEI, repairing firmware, and flashing various USB modems, routers, phones, and dongles (Huawei, ZTE, Sierra Wireless, Alcatel, etc.). While the graphical user interface (GUI) is popular, the true power of DC-Unlocker lies in its command-line interface (CLI). Using commands allows for automation, batch processing, and accessing hidden features not always visible in the standard software. dc-unlocker commands list
This article provides a complete, categorized dc-unlocker commands list—from basic port detection to advanced NV item rewriting.
Disclaimer: Using DC-Unlocker commands improperly can permanently damage your device. Always back up your NV data before writing. This guide is for educational purposes. Ensure you have the legal right to unlock your device.
| Command | Description |
|---------|-------------|
| AT^NVREAD=addr,len | Read NV item (Huawei) |
| AT^NVWRITE=addr,data | Write NV item (dangerous) |
| AT^PORTSPEED=1 | Force USB 2.0 HS mode |
| AT^RESET | Soft reset modem |
| AT^SETPORT="A1,2,3,4,5,6,7,8" | Enable diagnostic ports (Huawei) |
| AT^DATALOCK=0 | Disable data lock (some ZTE) |