Microsoft virtual network adapter not working

owen

New Member
Messages
1
Hello i am 19 years old so i don't exactly have lots of experience with all this. I am having a problem which i could use help with. Lately i have been using the Microsoft virtual network adapter (im sure heard of it!)
I wrote a small batch file for the purpose of starting the network. (ill copy and paste it in at the bottom) now this program worked perfectly for about a month but now i cant get a device to connect to the network as nothing can obtain an ip address.
What i did to troubleshoot..
1. I changed the ip settings from dhcp to static.
this allowed me to connect to the network but i couldn't access the internet.
2. I checked the properties of the network from the control panel and it
shows that my network is sending packets but is not receiving any. I tried
running windows troubleshooting on the network and it tells me that the
network does not have a valid ip configuration. even though it is set
dhcp.
3. I tried typing the following into cmd "netsh interface ip reset"
in return i get;
"C:\Windows\system32>netsh interface ip reset
Resetting Global, OK!
Resetting Interface, OK!
Resetting Unicast Address, OK!
Resetting Neighbor, OK!
Resetting Path, OK!
Resetting Route, OK!
Resetting , failed.
Access is denied.


Resetting , OK!
Restart the computer to complete this action."


why does it say resetting failed followed by access denied?
i think this is the cause of "failed to obtain ip address problem but why then does it not allow internet connectivity through the static ip settings? is there something i have missed or is something corrupt maybe?


I also tried going to device manager and uninstalling the network adapter from their then allowing windows to find it and re-install the driver.
Thank you for having the patients to read this far. As i said at the beginning i would copy paste my program here so you can see exactly what im trying to do here.
Thanks again.


PHP:
@echo off
color a


:beginning
echo To Create a Hotspot with the name "hotspot" and
echo   a password of "12345678" just press ENTER to the first two
echo   options
echo ............................................................................... ################################################################################
set /p ssid=Enter name for your network: || set ssid=hotspot
set /p key=Enter password for network(must be 8 characters or longer!): || set key=12345678
netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%key%
netsh wlan start hosted network
:refresh
netsh wlan show hostednetwork
echo                     Press ENTER to Refresh information!
echo ............................................................................... ################################################################################
echo                          Enter "RR" to Restart!
echo ............................................................................... ################################################################################
echo                            Enter "E" to Exit!
echo ............................................................................... ################################################################################
set /p option= || set option=r
if %option%==R goto :refresh
if %option%==r goto :refresh
if %option%==RR goto :beginning
if %option%==rr goto :beginning
if %option%==E goto :end
if %option%==e goto :end


:end
netsh wlan stop hostednetwork
Feel free to use this code for doing anything you want to do with it. (but im sure there are better versions of this that do the same thing online too)
 

My Computer

System One

  • OS
    windows 8 64 bit
Back
Top