I was hoping someone could help me with this. Right now I am using the script below as an XML file to send out the wifi profile. it adds the profile, but does not transfer the password nor set it to the preferred connection. if anyone has ant experience doing this I would greatly appreciate the help. I have also attached a screenshot of how I am deploying. Also if there is another way of doing this I am open to suggestions. thanks! 


<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">

2 Comments   [ + ] Show Comments


  • The only experience I have to draw from was that netsh was not very effective for us, others have had similar experiences with it. Sometimes it would work and sometimes it wouldn't.
  • Hello,

    have you exported your profile in this way?
    netsh wlan export profile key=clear
    kind regards,
    Marco - StockTrader
Please log in to comment


If these are 64bit machines it could be a sysnative problem.  the client is 32 bit so it will call the 32bit version of netsh on a 64bit machine.

try using:
c:\windows\sysnative\netsh ... in your script

Answered 03/04/2016 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity