Solved

Export/Import Wireless Config

Posted on 2011-03-22
15
1,314 Views
Last Modified: 2013-12-27
We've built a script that will export our profiles and will successfully import them for the user.

The strange part: The script works in that they can immediate connect to the network. But heres the problem, it's only short lived. After so much amount of time (it varies) they will lose Internet connectivity, but still retain local network connectivity (meaning I can connect to anything locally on the network just nothing over the internet).

Am I missing something here?

My Export looks like this:

netsh wlan export profile name="HOC-Mandrin" Folder=. key=clear

The Import looks like this:

netsh wlan add profile filename="\\domain\netlogon\HOC-Mandrin.xml"

The actual XML file, which looks exactly like the XML file stored in C:\ProgramData\Microsoft\wlansvc, looks like this:


<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
      <name>HOC-Mandrin</name>
      <SSIDConfig>
            <SSID>
                  <hex>484F432D4D616E6472696E</hex>
                  <name>HOC-Mandrin</name>
            </SSID>
            <nonBroadcast>true</nonBroadcast>
      </SSIDConfig>
      <connectionType>ESS</connectionType>
      <connectionMode>auto</connectionMode>
      <MSM>
            <security>
                  <authEncryption>
                        <authentication>WPA2PSK</authentication>
                        <encryption>AES</encryption>
                        <useOneX>false</useOneX>
                  </authEncryption>
                  <sharedKey>
                        <keyType>passPhrase</keyType>
                        <protected>false</protected>
                        <keyMaterial>WPAKey</keyMaterial>
                  </sharedKey>
            </security>
      </MSM>
</WLANProfile>


What the heck could be causing this? We know it's got to do with this script because everything was 100% fine until we started using the script.... and now it has been pushed out organization wide and we're in deep ... well you know.

Help! Please!!
0
Comment
Question by:HospiceChesapeake
  • 7
  • 7
15 Comments
 
LVL 44

Expert Comment

by:Darr247
ID: 35195578
> they will lose Internet connectivity, but still retain local network connectivity


Can you just disconnect, run the import script again, then it starts working again?

If not, it sounds like the problem is between the LAN and WAN ports.

What's the router? Are there accounting/bandwidth/traffic limits set (QoS) in it?
0
 

Author Comment

by:HospiceChesapeake
ID: 35195723
Well, disconnecting the wireless adapter and turning it back on usually does the trick. Also, simply waiting it out, it will come back on it's own.

We use a WAP, Netgear WN80T v2.

Mind you, this problem didn't seem to start until I created this script... which makes it even more weird.

We've been using these WAPs in several locations for MONTHS and it seems all of a sudden the script, which is designed exactly how it should be from what I've gathered from every resource, it causing some kind of weird Internet drop. Local area connection works fine though.

The QoS was on by default - but again, it was never a problem up until now... :( I will disable the QOS just in case though.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 35196003
It's happening with all your wireless APs?
("organization wide" makes it sound like there should be more than 1 WN80T.)

Do you have a different AP (e.g. another brand or model) you could try in its place?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:HospiceChesapeake
ID: 35197791
It is happening with all wireless AP's. We didn't have this problem until the script was ran over the weekend and these wap's have been in place for months.... but yes, we do have several different  brands at the moment - looking to convert to all one brand at some point.

It's just strange - all I'm doing is a delete profile and add profile from an exported profile (which is an XML file) ... pretty straight forward and it actually works, it's just causing the laptop itself (only wireless) to lose internet but local area connection stays connected fine... now if you plug a cable in all is hunky dory.

Maybe I'm missing something with the import/export? Maybe the adapter is getting screwed up? I don't know :(.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 35198013
> until the script was ran over the weekend and these wap's have been in place for months

That could still be a coincidence.  

Are you seeing it on all laptops?


If you delete the profile using

netsh wlan delete profile name= HOC-Mandrin

then create a wireless profile manually, does the problem still occur?  



What does
netsh wlan show interfaces
return on the affected laptop[s]?
0
 

Author Comment

by:HospiceChesapeake
ID: 35198738
Actually no, the problem doesn't occur if I delete the profile that way and recreate it manually... that's why I'm thinking it's not the WAP.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 35198845
So, it's doing it on ALL laptops?
0
 

Author Comment

by:HospiceChesapeake
ID: 35198889
Yes.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 35199266
> What does
netsh wlan show interfaces
return on the affected laptop[s]?

Are there multiple WLAN interfaces listed on the laptops when you run
netsh wlan show interfaces
?
0
 

Author Comment

by:HospiceChesapeake
ID: 35200043
Only one WAN showing up which is the one that is working fine.

However, I personally disabled the Microsoft Virtual Adapter on mine for other reasons, but the other users don't have this disabled... so could THAT be problematic?
0
 
LVL 44

Expert Comment

by:Darr247
ID: 35200710
If there are multiple WLAN interfaces listed by
netsh wlan show interfaces
try adding the profile only to the interface that will actually be used.
e.g.
netsh wlan add profile filename="\\domain\netlogon\HOC-Mandrin.xml" interface=wireless*

(if 'wireless' is enough of the interface name before the wildcard to get it down to a single interface.)
0
 

Author Comment

by:HospiceChesapeake
ID: 35208143
So I just checked on the tablets this was happening on and they only have two adapters showing, one if the LAN and the other is Wireless.

How exactly would I bind it to the interface, I know you said interface=wireless, but does wireless mean the name of the actual wireless, for example "Wireless Network Connection" or something else?
0
 
LVL 44

Accepted Solution

by:
Darr247 earned 500 total points
ID: 35209907
The command
netsh wlan show interfaces

(or just 'show interfaces' if you're already at the
netsh wlan> prompt)
should list only the Wireless LAN interfaces.

If only 1 is listed, that is the only interface the 'wlan add profile ...' command should be affecting.


> I know you said interface=wireless

Well, I actually said "interface=wireless* " - the asterisk is a wildcard. (Wildcards don't work with all netsh commands, but "?" - for single characters - and "*" do work with that particular command.) "interface=wireless* " should match any/all interface name/s starting with the word wireless.


You may have already seen this, but here's a good reference for the NETSH command on server 2008 R2/Win7:
http://technet.microsoft.com/en-us/library/dd744890(WS.10).aspx
A similar reference for server 2008/Vista is just above that in the index on the left side of the page.
0
 

Author Comment

by:HospiceChesapeake
ID: 35237603
I'll try it with the interface=wireless* option.

We're going to change the pass key globally and I'm going to try this script one last time, with this interface option, to do this so we'll see.

Personally, since it was really only a handful (out of hundreds) I would NOT call it a wide scale problem; however, we work in a very emotional and over-dramatic organization (hospice - healthcare) so you can imagine how 1 complaint can go a long way.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook 2010 not opening hyperlinks 6 28
Get SMB version on Windows 7 3 70
What are all these files on my C drive? 5 37
application access evidence windows 7 5 29
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now