Dc-unlocker Commands List -
| Command | Description |
|---------|-------------|
| unlock_code | Show unlock code for certain Huawei devices |
| unlock_huawei_code | Generate Huawei bootloader code |
| unlock_zte_code | Generate ZTE unlock code |
Always back up device state first. Many actions are irreversible or risky without backups.
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) |
Here is the complete template for any DC-Unlocker command: dc-unlocker commands list
dc-unlocker2.exe -x [VENDOR] [COMMAND] [VALUE] -port [COM?] -silent -auto_exit
Parameter breakdown:
Real example (full unlock + IMEI restore):
dc-unlocker2.exe -x Huawei -port COM5 -u
dc-unlocker2.exe -x Huawei -port COM5 -w IMEI 354829101234567
dc-unlocker2.exe -x Huawei -band "LTE:1,3,7,20"
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
NV items store device-specific data (IMEI, calibration, bands, MAC addresses). These commands are for advanced users.
| Command | Description |
| --- | --- |
| dc-unlocker2.exe -x Huawei -read_nv 1000 | Read NV item 1000. |
| dc-unlocker2.exe -x Huawei -write_nv 1000 0x00FF | Write hex value to NV item. |
| dc-unlocker2.exe -x Huawei -backup_nv "C:\backup.nvm" | Full NV backup. |
| dc-unlocker2.exe -x Huawei -restore_nv "C:\backup.nvm" | Restore from backup. |
| dc-unlocker2.exe -x Huawei -nv_repair | Auto-repair common NV corruptions. |
Use case: Restoring a lost IMEI often requires:
dc-unlocker2.exe -x Huawei -write_nv 450 0x[hex value]
Repairing IMEI/NVRAM on a supported modem: Here is the complete template for any DC-Unlocker