Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.84 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.84 KB

ForceConnectWiFi 🌐

PowerShell Platform MIT License

Automatically force-connect to a specific WiFi network with configurable retry logic and status feedback.

📌 Features

  • 🔄 Automatic retry mechanism
  • ⚙️ Configurable retry attempts and intervals
  • 📊 Visual connection status feedback
  • ❌ Graceful error handling
  • ⏱️ Auto-exit countdown

🚀 Usage

.\ForceConnectWiFi.ps1 -networkName "<SSID>" [-maxRetries <1-100>] [-retryIntervalSeconds <1-300>]

Parameters

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

Examples

# Basic usage
.\ForceConnectWiFi.ps1 -networkName "Office_WiFi"

# With custom retry settings
.\ForceConnectWiFi.ps1 -networkName "Home_Network" -maxRetries 10 -retryIntervalSeconds 5

⚙️ Requirements

  • Windows 10/11
  • PowerShell 5.1 or later
  • WiFi adapter

🔍 Troubleshooting

  1. Ensure WiFi adapter is enabled
  2. Verify network name is correct
  3. Check administrative privileges
  4. Confirm network is in range

📝 License

MIT © Scott Anderson 2024

💡 Tips

  • 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