Automatically force-connect to a specific WiFi network with configurable retry logic and status feedback.
- 🔄 Automatic retry mechanism
- ⚙️ Configurable retry attempts and intervals
- 📊 Visual connection status feedback
- ❌ Graceful error handling
- ⏱️ Auto-exit countdown
.\ForceConnectWiFi.ps1 -networkName "<SSID>" [-maxRetries <1-100>] [-retryIntervalSeconds <1-300>]
Parameter | Type | Default | Range | Description |
---|---|---|---|---|
networkName |
string | Required | - | WiFi network SSID to connect to |
maxRetries |
int | 5 | 1-100 | Maximum number of connection attempts |
retryIntervalSeconds |
int | 10 | 1-300 | Seconds between retry attempts |
# Basic usage
.\ForceConnectWiFi.ps1 -networkName "Office_WiFi"
# With custom retry settings
.\ForceConnectWiFi.ps1 -networkName "Home_Network" -maxRetries 10 -retryIntervalSeconds 5
- Windows 10/11
- PowerShell 5.1 or later
- WiFi adapter
- Ensure WiFi adapter is enabled
- Verify network name is correct
- Check administrative privileges
- Confirm network is in range
MIT © Scott Anderson 2024
- Use Task Scheduler to run at startup
- Create shortcut with parameters to add a shortcut on desktop
- Check Windows Event Viewer for detailed logs
For more utilities, visit the main repository here