This script creates a WiFi profile in XML format and injects it into the machine settings using netsh wlan
commands.
- Automatically generates a WiFi profile XML file.
- Temporarily stores the profile in a user-specific directory.
- Imports the WiFi profile into the system.
- Attempts to connect to the specified WiFi network.
- Deletes temporary files after execution.
- Windows operating system.
- Administrator privileges.
- Clone this repository or download the
wifi_setup.bat
script. - Modify the script to replace:
access point
with your WiFi SSID.password
with your WiFi password.
- Save the script.
- Open Command Prompt as Administrator.
- Navigate to the script directory.
- Run the script:
wifi_setup.bat
- The script will:
- Check if the system is already connected to the specified WiFi.
- Create an XML profile and attempt a connection.
- Notify if the connection is successful or failed.
- If the connection fails, ensure:
- The SSID and password are correctly set in the script.
- The WiFi network is available and in range.
- The system has necessary permissions to modify network settings.
This project is licensed under the MIT License - see the LICENSE file for details.
sudoPierre