What's the correct hardware ID of my graphic card ?


  1. Posts : 52
    linux
       #1

    What's the correct hardware ID of my graphic card ?


    Hello to everyone.

    I'm trying to disable my graphic card,NVIDIA RTX 2080 ti with devcon64 on Windows 10 emulated with bhyve on FreeBSD. As u can see below,I tried a lot of combinations,but it always says that cannot find the devices. So what ? What could be the working hardware ID ? thanks.

    What's the correct hardware ID of my graphic card ?-screenshot_20211104_185045.png
      My Computer


  2. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    You will need to enclose the whole HardwareID in quotation marks.

    Your application is responding to the & in the middle and it thinks you are issuing two separate commands. Using quotation marks makes your app see the whole HardwareID.

    I also think:-
    1 The command affects all devices with the same HardwareID [so would also affect any replacement of the same type of card] so I am surprised that your app works that way
    2 You could simply right-click & disable it in Device mgr instead.

    All the best,
    Denis
      My Computer


  3. Posts : 52
    linux
    Thread Starter
       #3

    like this ?

    What's the correct hardware ID of my graphic card ?-screenshot_20211104_203642.png

    no,I can't do it manually,I need to create an automatic script.
      My Computer


  4. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    You seem to have stuck " within the HardwareID.
    - Put one " before the start of the HardwareID.
    - Put another " after the end of the HardwareID.

    Like this
    SomeCmdOrOther.exe "PCI\VEN_8086&DEV_5916&SUBSYS_07441028&REV_02"

    Denis
      My Computer


  5. Posts : 52
    linux
    Thread Starter
       #5

    very thanks. it worked :

    devcon64 disable "PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1"
    PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1\3&2B8E0B4B&0&18: Disabled
    1 device(s) disabled.

    devcon64 enable "PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1"
    PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1\3&2B8E0B4B&0&18: Enabled
    1 device(s) are enabled.
      My Computer


  6. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    I'm glad the problem is resolved.

    You often need to add " to commands.
    If the 'argument' you are adding to a command has a space or a special character [such as an ampersand &] then the command can often only read the first part of it.
    There is generally no problem adding " to a Windows command's 'argument' unnecessarily.

    For example,
    Dir C:\Fred works, and
    Dir "C:\Fred" works, and
    Dir "C:\Fred and Mabel " works, and
    Dir "C:\Fred & Mabel " works,
    but
    Dir C:\Fred and Mabel does not, and
    Dir C:\Fred & Mabel is even worse - Windows thinks you are issuing two commands Dir C:\Fred and then Mabel and it has no idea what the command Mabel is at all.

    All the best,
    Denis
      My Computer


  7. Posts : 52
    linux
    Thread Starter
       #7

    What's the correct hardware ID of my graphic card (EPISODE 2).


    Hello.

    I've reinstalled Windows 11 and I have passed again my graphic card inside the VM and I've got the same error as before,but this time I don't see any syntax error. Can you help me again to find what's the right ID of my graphic card ? (it should be the same of the previous time,but it does not seem). Please give a look at the picture attached...thanks

    What's the correct hardware ID of my graphic card ?-screenshot_20211207_182954.png
      My Computer


  8. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    The HardwareID of the device will not have changed.

    I notice that your command has changed
    from
    devcon64 disable "PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1"
    to
    devcon disable "PCI\VEN_10DE&DEV_1E04&SUBSYS_250319DA&REV_A1"

    I do not know if using a VM or Windows 11 make any difference to devcon.

    All the best,
    Denis
      My Computer


  9. Posts : 52
    linux
    Thread Starter
       #9

    Ive got it here :

    windows - Quick Method to install DevCon.exe? - Super User

    where you read :

    Download 787bee96dbd26371076b37b13c405890.cab, extract the file filbad6e2cce5ebc45a401e19c613d0a28f and rename it to devcon.exe (download size: 6.12 MB).

    - - - Updated - - -

    Ive got another version of devcon,here

    https://download.microsoft.com/downl...k/wdksetup.exe

    it is inside the WDK 8.1 https://download.microsoft.com/downl...k/wdksetup.exe.

    unfortunately I get the same error as before. can u tell me where to get the working file
      My Computer


  10. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    No, I know nothing about devcon.

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:39.
Find Us




Windows 10 Forums