你已经找到这里了,想必目的已经很清晰了,就是想要实现不安装WDK,又想使用Devcon.exe,那么往下看就对了。
这里直接上GitHub链接:https://github.com/Drawbackz/DevCon-Installer
考虑到网络环境,这里提供CSDN下载方式:https://download.csdn.net/download/zbj18314469395/89937384
使用方法:
PS:
1、工具的右上角,可以选择x86 和x64;
2、可以选择添加devcon.exe到系统环境变量,这样直接使用就行:
比如:
# 禁用对应的USB设备
devcon disable "USB\VID_2F4C&PID_1000&REV_1101"
devcon.exe的更多用法直接在命令行输入devcon help
即可查看语法命令,如下:
C:\Users\Admin>devcon help
------------------------------------------------------------------------------
| Devcon is a code sample intended for learning purposes |
| Use PnpUtil for optimal functionality/compatiblity with this OS |
------------------------------------------------------------------------------
Device Console Help:
devcon [-r] [-m:\\<machine>] <command> [<arg>...]
-r Reboots the system only when a restart or reboot is required.
<machine> Specifies a remote computer.
<command> Specifies a Devcon command (see command list below).
<arg>... One or more arguments that modify a command.
For help with a specific command, type: devcon help <command>
classfilter Add, delete, and reorder class filters.
classes List all device setup classes.
disable Disable devices.
driverfiles List installed driver files for devices.
drivernodes List driver nodes of devices.
enable Enable devices.
find Find devices.
findall Find devices, including those that are not currently attached.
help Display Devcon help.
hwids List hardware IDs of devices.
install Install a device manually.
listclass List all devices in a setup class.
reboot Reboot the local computer.
remove Remove devices.
rescan Scan for new hardware.
resources List hardware resources for devices.
restart Restart devices.
sethwid Modify Hardware ID's of listed root-enumerated devices.
stack List expected driver stack for devices.
status List running status of devices.
update Update a device manually.
updateni Manually update a device (non interactive).
dp_add Adds (installs) a third-party (OEM) driver package.
dp_delete Deletes a third-party (OEM) driver package.
dp_enum Lists the third-party (OEM) driver packages installed on this machine.
获取设备ID:
win键>>设备管理器>>目标设备>> 右键属性查看
手动下载对应的地址:
用法:找下面对应的版本和架构,访问URL下载后将其改名为devcon.exe即可
来源:https://github.com/Drawbackz/DevCon-Installer/blob/master/devcon_sources.json
[
{
"Name": "Windows 11 version 23H2",
"Sources": [
{
"Sha256": "C8FCE4377D8F0D184E5434F9EF1FE1EF9D0E34196A08CD7E5655555FABA21379",
"Url": "https://download.microsoft.com/download/7/b/f/7bfc8dbe-00cb-47de-b856-70e696ef4f46/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "6ECFAF7042C525DDB6C0BF0501BECFBCE85CBDF2A33B1BCA67734FEA567AF3B8",
"Url": "https://download.microsoft.com/download/7/b/f/7bfc8dbe-00cb-47de-b856-70e696ef4f46/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 11 version 22H2",
"Sources": [
{
"Sha256": "4F0C165C58114790DB7807872DEBD99379321024DB6077F0ED79426CF9C05CA0",
"Url": "https://download.microsoft.com/download/c/6/4/c64e8e90-4143-4e86-93d7-0209b0b30626/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "C3816F79DEAC8E26C4A5C5791FE3F1F8104392D077D16941E7CCB6418FB3467A",
"Url": "https://download.microsoft.com/download/c/6/4/c64e8e90-4143-4e86-93d7-0209b0b30626/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 11 version 21H2",
"Sources": [
{
"Sha256": "FBD394E4407C6C334B933FF3A0D21A8E28F0EEDE0CFE5FB277287C3F994B5B00",
"Url": "https://download.microsoft.com/download/7/d/6/7d602355-8ae9-414c-ae36-109ece2aade6/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "CC3A7D551B7442565D4EC2A3BCD44DCBA1176362A634AAC76945EE0549597CC0",
"Url": "https://download.microsoft.com/download/7/d/6/7d602355-8ae9-414c-ae36-109ece2aade6/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows Server 2022",
"Sources": [
{
"Sha256": "B984BA280FE64B6929BED82F49DF9133AA818234B715070047EF23CB1CF4EDBF",
"Url": "https://download.microsoft.com/download/e/2/1/e2100c80-3148-4cee-8d67-610792a9ca97/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "B85A2B81E1518EABCC4AFDEE145304CAD9708778C0EBFC177A2DB2847D7FB355",
"Url": "https://download.microsoft.com/download/e/2/1/e2100c80-3148-4cee-8d67-610792a9ca97/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 11 Insider Preview",
"Sources": [
{
"Sha256": "FBD394E4407C6C334B933FF3A0D21A8E28F0EEDE0CFE5FB277287C3F994B5B00",
"Url": "https://download.microsoft.com/download/7/d/6/7d602355-8ae9-414c-ae36-109ece2aade6/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "CC3A7D551B7442565D4EC2A3BCD44DCBA1176362A634AAC76945EE0549597CC0",
"Url": "https://download.microsoft.com/download/7/d/6/7d602355-8ae9-414c-ae36-109ece2aade6/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 2004",
"Sources": [
{
"Sha256": "01833832D4022FCD7889B21AA89FFD64B12E9378A3BF7BFE58D8448EB4867891",
"Url": "https://download.microsoft.com/download/c/f/8/cf80b955-d578-4635-825c-2801911f9d79/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "5A1999DBDC8F7147FA9E195115FFA588E3491A292205C6C3F52B35F521823118",
"Url": "https://download.microsoft.com/download/c/f/8/cf80b955-d578-4635-825c-2801911f9d79/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1903",
"Sources": [
{
"Sha256": "8DF4A1EB40894C98C6453EB5833DCF0196C638AFC91E7F8E9F879E28BE96D50D",
"Url": "https://download.microsoft.com/download/2/9/3/29376990-B744-43C5-AE5C-99405068D58B/WDK/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "411685D0D8168545CCB84D38CF25EBDC2FE38629B051E069682871C9FB9E3E4D",
"Url": "https://download.microsoft.com/download/2/9/3/29376990-B744-43C5-AE5C-99405068D58B/WDK/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1809 + Windows Server 2019",
"Sources": [
{
"Sha256": "2469C602B861F8A87D4625459F3174CD50A86BFDD00FF38288341DFF8FCE1195",
"Url": "https://download.microsoft.com/download/1/4/0/140EBDB7-F631-4191-9DC0-31C8ECB8A11F/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "54004C83EE34F6A55380528A8B29F4C400E61FBB947A19E0AB9E5A193D7D961E",
"Url": "https://download.microsoft.com/download/1/4/0/140EBDB7-F631-4191-9DC0-31C8ECB8A11F/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1803",
"Sources": [
{
"Sha256": "31F7362EEB287327D8A58AB54F5F853D6329522A5C368AA824C64A09D8665BE4",
"Url": "https://download.microsoft.com/download/B/5/8/B58D625D-17D6-47A8-B3D3-668670B6D1EB/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "BF402AE3A77D14538F6F66646CEE999D1C668B1ACB15F3E6862C6DD59E65CD0F",
"Url": "https://download.microsoft.com/download/B/5/8/B58D625D-17D6-47A8-B3D3-668670B6D1EB/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1709 (Fall Creators Update)",
"Sources": [
{
"Sha256": "633B8149E480BB52CCFE7CBEDFFE13F30FBC528F5F6EECC03ACBE9C7E24E8CA2",
"Url": "https://download.microsoft.com/download/7/D/D/7DD48DE6-8BDA-47C0-854A-539A800FAA90/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "A38E409617FC89D0BA1224C31E42AF4344013FEA046D2248E4B9E03F67D5908A",
"Url": "https://download.microsoft.com/download/7/D/D/7DD48DE6-8BDA-47C0-854A-539A800FAA90/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1703 (Creators Update)",
"Sources": [
{
"Sha256": "4CA8946960846052661E11D4FCDD21BA9B855C7AED67322189AF6F68BB9CE940",
"Url": "https://download.microsoft.com/download/4/E/0/4E07EAAD-E394-4EA8-B2B8-D46E46A409C5/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "A38E409617FC89D0BA1224C31E42AF4344013FEA046D2248E4B9E03F67D5908A",
"Url": "https://download.microsoft.com/download/7/D/D/7DD48DE6-8BDA-47C0-854A-539A800FAA90/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1607 + Windows Server 2016",
"Sources": [
{
"Sha256": "43463F7678A7ED49FE2CFD9AE087FB38D4D9C9C15DF44B2D18443E9C55DC8567",
"Url": "https://download.microsoft.com/download/8/1/6/816FE939-15C7-4185-9767-42ED05524A95/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "1840929B0289A6938C8AD0BD7DD8D34066FB3C7DE88B54692B1E5FEABF57EBA4",
"Url": "https://download.microsoft.com/download/8/1/6/816FE939-15C7-4185-9767-42ED05524A95/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1511 (November Update)",
"Sources": [
{
"Sha256": "494D08720A0FD72328BEA9021E305B42AA60D0D3AB53ECBB3840967F30D9D303",
"Url": "https://download.microsoft.com/download/C/E/1/CE19C726-6036-4443-845B-A652B0F48CD7/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "4B87DE87E4E39B413C305BC5C910F406808AF661F9E8691E0050B0722E5803D2",
"Url": "https://download.microsoft.com/download/C/E/1/CE19C726-6036-4443-845B-A652B0F48CD7/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 version 1507",
"Sources": [
{
"Sha256": "F8B55D0F2BB29C86688AF6BDE84A09914D792297E02ED7CA824354C1DC39A00E",
"Url": "https://download.microsoft.com/download/1/2/1/121AA3A0-6E03-4852-B7E6-39C741E1E942/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "98AFEA2438714064D08556F2D8B8D48A9A6F6DF8C7613CBD4C6E44A9D4D3189F",
"Url": "https://download.microsoft.com/download/1/2/1/121AA3A0-6E03-4852-B7E6-39C741E1E942/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 10 Insider Preview",
"Sources": [
{
"Sha256": "0A91474AE0F19A8CE8048E9551D195DF30F9478CD26A963B8189247B9A2C5878",
"Url": "https://download.microsoft.com/download/D/B/5/DB538B89-04A0-4D74-AD65-E721D93FFD08/wdk/Installers/82c1721cd310c73968861674ffc209c9.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "39C6885559FF87CB12A365CC569FC09E2D21463C7568D1615BA9CC0745C5713D",
"Url": "https://download.microsoft.com/download/D/B/5/DB538B89-04A0-4D74-AD65-E721D93FFD08/wdk/Installers/787bee96dbd26371076b37b13c405890.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 8.1 Update",
"Sources": [
{
"Sha256": "0D70458C91466B1D18B73FCEF6A7E688E1655A03D42D72D69C0047276B66724B",
"Url": "https://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/af0d6547860d8f68c1b0c9da530f699d.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "2783EAFBF69012E9F680C9F8BD4AD083F745EEE0C75FDC63C84AF064C89A0878",
"Url": "https://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/09844d1815314132979ed88093f49c6f.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows 8",
"Sources": [
{
"Sha256": "8E41D3479C25DC69FD5B4B5464A9981D5EC3C47EA4571CCD6ECD354A6B601FDD",
"Url": "https://download.microsoft.com/download/2/4/C/24CA7FB3-FF2E-4DB5-BA52-62A4399A4601/wdk/Installers/af0d6547860d8f68c1b0c9da530f699d.cab",
"ExtractionName": "fil5a9177f816435063f779ebbbd2c1a1d2",
"Architecture": "X86"
},
{
"Sha256": "7892464A6DAEAF5D3FE7B500B1EDC9F25E9E0D513E20B991B1B6C8D0479E7138",
"Url": "https://download.microsoft.com/download/2/4/C/24CA7FB3-FF2E-4DB5-BA52-62A4399A4601/wdk/Installers/09844d1815314132979ed88093f49c6f.cab",
"ExtractionName": "filbad6e2cce5ebc45a401e19c613d0a28f",
"Architecture": "X64"
}
]
},
{
"Name": "Windows XP/Vista + Windows Server 2003",
"Sources": [
{
"Sha256": "ADAED2F9BCD668800AC4A593535DDF8BD43617A408825CBE9A6044045CC183AB",
"Url": "https://web.archive.org/web/20200304212626if_/http://download.microsoft.com/download/6/e/4/6e481b67-54af-4340-a534-25de4229cfc6/support.cab",
"ExtractionName": "devcon.exe",
"Architecture": "X86"
}
]
}
]
资料参考:https://superuser.com/questions/1002950/quick-method-to-install-devcon-exe