Geeks With Blogs
Brent Caskey Active Directory, Hyper-V, Clustering, and Exchange Blog

 

Just ran across an issue where the miniport devices were accidently removed from a system. Not having these installed caused the system to have network driver installation and connectivity issues.

Here are the steps to re-install WAN miniport devices

Step 1: Uninstall WAN Miniport Devices

1. Open Device Manager (devmgmt.msc) and on the view menu select Show hidden devices

2. Under Network adapters, you will see WAN miniport devices (IP, L2TP, Pppoe, PPTP). If you don’t see these, skip to the Step 2 section

3. Open Registry editor (regedit.exe)

4. Browse to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318} and Export this registry subkey

5. Click each of the registry subkeys under this key. Look up the data value in DriverDesc. Find the subkey that corresponds to the miniport device for example, WAN Miniport (IP).

6. Right click the subkey (for example 005), and then click delete. Click Yes to confirm deletion

7. Go into Device Manager and right click the miniport device that corresponds to the subkey that was deleted. Select uninstall and confirm uninstallation

8. Repeat this process for all miniport devices that you need to uninstall

Step 2: Reinstall WAN Miniport Devices

9. Find netrasa.inf in c:\windows\inf

10. Make a copy of this file (netrasa.bak)

11. Open netrasa.inf and comment out the following section:

Before

[ControlFlags]
ExcludeFromSelect =\
    SW\{eeab7790-c514-11d1-b42b-00805fc1270e},\
    MS_IrdaMiniport,\
    MS_IrModemMiniport, \
    MS_L2tpMiniport,MS_PptpMiniport,\
    MS_PppoeMiniport, \
    MS_NdisWanBh,\
    MS_NdisWanIp,\
    MS_NdisWanIpv6,\
    MS_NdisWanNbfIn,MS_NdisWanNbfOut

After

[ControlFlags]
;ExcludeFromSelect =\
;    SW\{eeab7790-c514-11d1-b42b-00805fc1270e},\
;    MS_IrdaMiniport,\
;    MS_IrModemMiniport, \
;    MS_L2tpMiniport,MS_PptpMiniport,\
;    MS_PppoeMiniport, \
;    MS_NdisWanBh,\
;    MS_NdisWanIp,\
;    MS_NdisWanIpv6,\
;    MS_NdisWanNbfIn,MS_NdisWanNbfOut

12. Start the Add Hardware Wizard from control panel

13. Select Yes, I have already connected the hardware, then Next

14. Select Add a new hardware device, then Next 

15. Select Install the hardware that I manually select from a list (Advanced), then Next

16. Select Network Adapters, then Next

17. Select Microsoft in the Manufacturer section and then on the Network Adapter, select the desired WAN Miniport device, then Next and Finish the wizard

18. Repeat 13 – 18 for each device you are re-installing

19. After the devices are re-installed, reboot the system

20. Run netsh int ip reset c:\resetlog.txt and reboot the system again (Resetting the TCP/IP stack)

21. Check the network connections in device manager and in Network Connection (ncpa.cpl)

22. Delete c:\windows\inf\netrasa.inf and rename netrasa.bak to netrasa.inf

Posted on Thursday, June 9, 2011 5:13 PM Windows | Back to top


Comments on this post: Re-installing WAN miniport devices

# re: Re-installing WAN miniport devices
Requesting Gravatar...
Thank you so much! You are a genius!
Left by Darrell R. on Dec 02, 2011 10:01 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
Nice post. The idea of reinstalling WAN miniport devices is so elementary, but there is more to it than meets the eye. I seemd complicated, but can be done. - Madison Pharmacy Associates


Left by Madison Pharmacy Associates on Mar 11, 2012 8:07 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
it is good
Left by khalid on Mar 18, 2012 1:10 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
it says "The following hardware was not installed: WAN Miniport (IP) An error occurred during the installation of the device. The system cannot find the file specified." when i am re installing it.
Left by golden1368 on Aug 20, 2012 7:53 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
putang ina bob mo d naman gumagana access denied
Left by fasfas on Aug 26, 2012 11:42 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
I had to go through this process for Windows 7, 64 bit.

I had to obtain devcon.exe by installing the Windows Driver Kit (WDK) and using the copy in 8.0\Tools\x64. The more commonly found devcon.exe will fail with a terse, unhelpful message.

I installed each of these hardware ID's using "devcon.exe install c:\windows\inf\netrasa.inf <hardwareId>":

MS_AgileVpnMiniport
MS_NdisWanip
MS_NdisWanipv6
MS_L2tpMiniport
MS_ndisWanbh
MS_PppoeMiniport
MS_PptpMiniport
MS_SstpMiniport

After adding these, Device Manager showed them as "Unknown Device".

After a reboot, Windows attempted to install drivers for these. It reported failure for each, but still, Device Manager showed the proper Display Name for each of the above.

My first attempt at using VPN failed due to Network Access Protection (NAP) not getting info it wanted. The second attempt succeeded.
Left by mijagourlay on Oct 02, 2012 9:33 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
After a straight run of 21hrs of searching/sifting through all the stupid windows helpdesk post and other blogs - Found all useless.

Here is what worked for me:
Re-install ing WAN miniport (IP) device

- First restore the backup key you deleted from the registry - steps 3-6 were the culprits.
STEP -A
- so before you start reinstalling - restore the registry key you might have saved before step 6 by exporting the key before delete. -just double click that backup file to autoinstall

THis will bring back the entry in the device manager - albite with an unknown driver mark on the entry - goto Step B

- Now the step 9 to 11 are all crap - windows does not allow you to access or change the netrasa.inf file.
ACCESS DENIED!!!!

- instead you just need to follow some simple steps
STEP -B
- Now just scan for any hardware changes
- windows automatically updates the WANminiport IP driver using the files
windows/system32/ndistapi.sys &
windows/system32/ndiswan.sys

- otherwise you might have to locate this directory for the install to happen

This works!!!! and wallah!!!
Your netcon is back online :)
Left by saurabh on Feb 20, 2013 7:20 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
hi,
Am using windows 7. In win 7 , ADD HARDWARE WIZARD OPTION" IS NOT AVAILABLE. What I have to do now?
Left by vinod on Feb 23, 2013 12:58 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
I dont find netrasa.inf file at dat path............pls helpp
Left by vib on Mar 13, 2013 3:37 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
cant find nestra..Im using windows 8
Left by Phiip on Jun 08, 2013 8:49 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
I do not have permissions to save netrasa.inf after editing. How can I get those permissions? This is my laptop and not a company laptop. i.e, I am the only user.
Left by kdp on Jul 22, 2013 1:53 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
hey guys.. this all is crap (ok not crap..but it does not give full info) i found it very easy to do it from this site....now i can easily change files on netrasa.inf (without any restriction).. so i tell you to go here- www.apk4phones.blogspot.com
Left by sralli on Aug 18, 2013 2:22 PM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
The message left by saurabh on Feb 20, 2013 helped me solve my miniport problem.
I got stuck after I uninstalled them because after using devcon.exe to install each miniport (this site helped me do it http://oyam.ca/blog/2011/11/windows-miniports.html), I didn't know where to find the "update driver" file (they didn't update after I rebooted the computer).
Thank you saurabh.
Left by Jeff D on Sep 14, 2013 2:33 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
We are not able to modify netrasa.inf neither able to change the read/write permission - I am using Win7Pro
Left by Murtaza Ali on Oct 29, 2013 4:19 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
Thanks, after several months of delaying this fix, now it was interferring with a vpn connection, this was an excellent article to fix my network real fast
Left by AdolfoC on Mar 22, 2014 2:43 AM

# re: Re-installing WAN miniport devices
Requesting Gravatar...
After a LOT of searching, I found a better fix. This didn't work for me, but I found an article on Microsoft that did the trick.
http://support.microsoft.com/kb/953795

essentially:
Netcfg -u MS_L2TP
Netcfg -u MS_PPTP
Netcfg -l %windir%\inf\netrast.inf -c p -i MS_PPTP
Netcfg -l %windir%\inf\netrast.inf -c p -i MS_L2TP

Hope this helps someone else...
Left by John Mathis on Jul 09, 2014 10:28 AM

Your comment:
 (will show your gravatar)


Copyright © Brent Caskey | Powered by: GeeksWithBlogs.net | Join free