none
Windows 7 USB RNDIS driver

    Question

  • I have an own developed WinCE 5.2 target connected to my Windows XP PC via the USB cable using RNDIS. It has been running for several years. Now I need to support connection to WIndows 7 x64 bits PC as well.

    When plugging in the USB cable from my device to my Win7-PC it appears in Device Manager as a Network Adaptor "Generic RNDIS (XR ITS)".

    When doing "Update driver software" using Old.inf file, it fails with the message:

    Windows was unable to install your Generic RNDIS (XR ITS)
    Windows could not find driver software for your device.

    So then I tried to use the "Remote NDIS INF Template" located at http://msdn.microsoft.com/en-us/library/ff570620(v=VS.85).aspx to create a New.inf file. The only thing done to the template in the first place was replacing the VID_xxxx/PID_yyyy with my own. When doing "Update driver software" in Windows 7 using this new driver, it failed with the message:

    Windows encountered a problem installing the driver software for your device
    Windows found driver software for your device but encountered an error while attempting to install it.
    Remote NDIS based Device
    The rquired line was not found in the INF. I have tied to add different stuff from my Old.inf file to see if I can come around this without success. I have no idea what might be the problem and need some help. Is there a way to run .inf in some kind of debug to see what is the problem? 

    /trond

    Friday, April 29, 2011 7:15 AM

All replies

    • Proposed as answer by Prabu[MCTS]MVP Thursday, December 13, 2012 2:52 PM
    Friday, April 29, 2011 10:28 AM
  • Hi Alterok,

    Did you fix the RNDIS in windows 7?. If not , please use the following inf file. This inf is working for me.

    ==================

    ;                    
    ; Remote NDIS template device setup file
    ; Copyright (c) Microsoft Corporation
    ;
    ; This is the template for the INF installation script
    ; for the RNDIS-over-USB host driver.
    ; This INF works for Windows XP SP2, Windows XP x64,
    ; Windows Server 2003 SP1 x86, x64, and ia64, and
    ; Windows Vista x86 and x64.
    ; This INF will work with Windows XP, Windows XP SP1,
    ; and Windows 2003 after applying specific hotfixes.

    [Version]
    Signature           = "$Windows NT$"
    Class               = Net
    ClassGUID           = {4d36e972-e325-11ce-bfc1-08002be10318}
    Provider            = %Microsoft%
    DriverVer=06/21/2006,6.1.7600.16385
    ;CatalogFile        = device.cat

    [Manufacturer]
    %Microsoft%         = RndisDevices,NTx86,NTamd64,NTia64

    ; Decoration for x86 architecture
    [RndisDevices.NTx86]
    ;when MSID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\MS_COMP_RNDIS&MS_SUBCOMP_5162001
    ;when CompatID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\Class_EF&SubClass_04&Prot_01

    ; Decoration for x64 architecture
    [RndisDevices.NTamd64]
    ;when MSID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\MS_COMP_RNDIS&MS_SUBCOMP_5162001
    ;when CompatID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\Class_EF&SubClass_04&Prot_01

    ; Decoration for ia64 architecture
    [RndisDevices.NTia64]
    ;when MSID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\MS_COMP_RNDIS&MS_SUBCOMP_5162001
    ;when CompatID is used for RNDIS Ethernet devices over USB transport
    %RndisDevice%    = RNDIS.NT.6.0, USB\Class_EF&SubClass_04&Prot_01

    ;@@@ This is the common setting for setup
    [ControlFlags]
    ExcludeFromSelect=*

    ; DDInstall section
    ; References the in-build Netrndis.inf
    [RNDIS.NT.6.0]
    Characteristics = 0x84   ; NCF_PHYSICAL + NCF_HAS_UI
    BusType         = 15
    ; NEVER REMOVE THE FOLLOWING REFERENCE FOR NETRNDIS.INF
    include            = netrndis.inf
    needs              = usbrndis6.ndi
    AddReg             = Rndis_AddReg_Vista
    *IfType            = 6    ; IF_TYPE_ETHERNET_CSMACD.
    *MediaType         = 0   ; NdisMediumNative802_3
    *PhysicalMediaType = 14   ; NdisPhysicalMedium802_3

    ; DDInstal.Services section
    [RNDIS.NT.6.0.Services]
    include     = netrndis.inf
    needs       = usbrndis6.ndi.Services


    ; Optional registry settings. You can modify as needed.
    [RNDIS_AddReg_Vista]
    HKR, NDI\params\VistaProperty, ParamDesc,  0, %Vista_Property%
    HKR, NDI\params\VistaProperty, type,       0, "edit"
    HKR, NDI\params\VistaProperty, LimitText,  0, "12"
    HKR, NDI\params\VistaProperty, UpperCase,  0, "1"
    HKR, NDI\params\VistaProperty, default,    0, " "
    HKR, NDI\params\VistaProperty, optional,   0, "1"

    ; No sys copyfiles - the sys files are already in-build
    ; (part of the operating system).

    ; Modify these strings for your device as needed.
    [Strings]
    Microsoft             = "Microsoft Corporation"
    RndisDevice           = "Remote NDIS Compatible Device"
    Vista_Property        = "Optional Vista Property"


    Chris
    Monday, July 18, 2011 6:21 PM
  • Thank you so very much everyone. I have just bought an hp running windows 7 home premium and was having major problems with getting this driver installed.  I had previously installed it using this tutorial:  http://leighjapps.wordpress.com/2012/03/17/new-internet-connection-windows-7/ 

    However thanks to this tutorial I am learning of more options. 

    Prabu. you rock and alterok thanks for asking this question. :)

    Saturday, March 31, 2012 11:22 PM
  • This worked for me in Windows 7, Thanks Prabu
    Thursday, December 13, 2012 2:31 PM
  • Chris, thanks for the inf file -- it worked for me.  In case anyone needs to know, save the text in Notepad, name the file rndiscmp.inf and put it in c:\windows\inf.
    Friday, August 09, 2013 7:39 PM