/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Send Wifi Profile Via kScript

03/03/2016 1173 views
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! 

e1qEgq.png

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>IDEALabs</name>
<SSIDConfig>
<SSID>
<hex>494445414C616273</hex>
<name>SSIDNAME</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>SSIDPASSWORD</keyMaterial>
</sharedKey>
</security>
</MSM>
</WLANProfile>

2 Comments   [ + ] Show comments

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

All Answers

0
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

https://support.software.dell.com/k1000-systems-management-appliance/kb/111236
Answered 03/04/2016 by: SMal.tmcc
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ