WLan Reset

Use this forum to report bugs you find in the software.
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

WLan Reset

Post by Charger440 »

Fred, While you are bug hunting, I finally go the chance to try your WLAN reset fix and it does not work.

For it to work WLAN Auto config service needs to be stopped and it does not look like your doing that. I you are then I found a bug :)

Also, it does not look like it is deleting the WLan profiles correctly. When I went and did it manually two profiles were still there.

Let me know if you need any testing I will be glad to help you.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Thanks Jim. Yes, it is a bug. UVK sends the stop control to the service but does not wait for the service to stop before start deleting. It will be fixed in the next update.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

Fred

If this was a bug fix in this version, It's still a bug... If not then carry on :)

I also noticed that when I stop the service and then run the fix again it still does not delete the profiles.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Crap! I didn't test it because I didn't want to delete my wifi profiles, and there was still a bug. This time I will test, promise.

Thanks Jim.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

LOL Fred no problem :) You could always test it on a virtual box. It it will delete one, it should delete them all.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

No, I can't Jim. My VMs don't have WIFI connections. Only LAN connections.

The path was missing a slash. You will probably found a new path created by the fix:
C:\ProgramDataMicrosoft\Wlansvc\Profiles\Interfaces
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

I'm pretty sure the LAN also has a similar profile....

I will check on that path and see...


LOL
Yep it was there. What was you doing? Creating an empty directory? I didn't think deleting would create a path if it didn't exist. Not a big deal, just curious...
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Jim, LAN uses a totally different method.

To satisfy your curiosity (the one that killed the dog :)), you said:
Navigate to
"C: \ProgramData\Microsoft\Wlansvc\ delete everything in this folder leaving only a folder called "profiles" delete everything in the "profiles" folder except for a folder called "interfaces" delete everything in the "interfaces" folder)
This is the same as deleting the C: \ProgramData\Microsoft\Wlansvc dir and then create the C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces one, which is what I'm doing.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

That would make sense for that method.

I have noticed so far that
Navigate to
"C: \ProgramData\Microsoft\Wlansvc\ delete everything in this folder leaving only a folder called "profiles" delete everything in the "profiles" folder except for a folder called "interfaces" delete everything in the "interfaces" folder)
is a little lengthy. I have manually deleted a few times since I posted that (Surprisingly, since I rarely used until recently)and the only folder that has anything in it is "interfaces."

May be a good idea to keep your method as I suppose it's possible something could be in those other folders.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Yeah, this fix is very simple. From a batch it would make:

Code: Select all

@echo off
net stop Wlansvc
rd /s /q "%Programdata%\Microsoft\Wlansvc"
md  "%Programdata%\Microsoft\Wlansvc\Profiles\Interfaces"
net start Wlansvc
Just prepend

Code: Select all

<CmdScript> -h
and it will make a UVK script.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

Fred

That info I posted I think was actually from MSDN I think. I have not created any script for it because you said you would add it right away. Didn't want to reinvent the wheel there :)

The way you have it though is simple and to the point. It also covers IF there is anything in the other folders at some point even though so far there has not been.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Charger440 wrote:Fred

That info I posted I think was actually from MSDN I think. I have not created any script for it because you said you would add it right away. Didn't want to reinvent the wheel there :)
Yes, and I did, but I was too confident because it was easy. It only took me a few minutes to add the fix but I didn't test it. And it was broken. Twice.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: WLan Reset

Post by Charger440 »

Oh, that confidence is a killer :)

I have faith in you Fred. I know you'll get it right
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WLan Reset

Post by Fred »

Charger440 wrote:Oh, that confidence is a killer :)

I have faith in you Fred. I know you'll get it right
Thanks Jim. It seems to happen only when I don't test a feature. Thankfully I don't have to do it often.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Post Reply