Page 1 of 1
[SOLVED] Wifi configuration package (SSID and MDP)
Published: September 5, 2024 - 11:29 AM
by Emmanuel64
Hello,
I've searched the forum but haven't found anything, so I'm posting my question here.
Is it possible (and if so, how) to create a package to inject Wi-Fi parameters (SSID + password)?
I found a solution using Group Policy, but using WAPT would allow me to refine the settings on which to deploy the different SSIDs.
Thank you in advance for your reply.
Re: Wifi configuration package (SSID and MDP)
Published: September 10, 2024 - 09:34
by t.heroult
Hello,
it's quite simple, you need to use the netsh command.
The page
https://www.it-connect.fr/import-et-exp ... vec-netsh/ will give you the command lines to use.
Re: Wifi configuration package (SSID and MDP)
Published: Dec 4, 2024 - 3:25 PM
by Emmanuel64
Good morning
Sorry, I didn't see the reply... Thank you
How do you then integrate the powershell command into a package?
I put the XML file in the package and then edited the setup.py file:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
run_powershell(Invoke-Expression 'netsh wlan add profile filename='monWiFi.xml' user=all')
I think the idea is there, but the syntax, much less so

Re: Wifi configuration package (SSID and MDP)
Published: Dec 4, 2024 - 4:25 PM
by fschelfaut
Good morning,
The double quotes were missing in the run_powershell function!
I think this snippet of code would be better:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
run('netsh wlan add profile filename="monWiFi.xml" user=all')
Flavien,
Re: Wifi configuration package (SSID and MDP)
Published: Dec 4, 2024 - 4:41 PM
by Emmanuel64
Great!
Thank you so much for your help and your quick response.
Re: Wifi configuration package (SSID and MDP)
Published: Dec 5, 2024 - 09:34
by dcardon
Hi Emmanuel,
thanks for the feedback!
Feel free to spread the word about WAPT; word of mouth is also how WAPT spreads.
- Denis