Skip to content

tcdoverlord/WiFi-Toggle-Control-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Œ WiFi Toggle Control System

A lightweight PowerShell utility that safely disables and restores WiFi connectivity while helping prevent common network recovery issues such as DHCP failures, missing gateways, DNS problems, and adapter initialization errors.


🎬 Demo

WiFi Toggle Control System Demo


🧠 Overview

Windows networking issues are often solved using aggressive reset methods that can create additional problems.

WiFi Toggle Control System takes a safer approach by performing controlled WiFi adapter operations designed to restore connectivity without modifying the registry, removing adapters, or resetting the entire network stack.

Common Issues Addressed

  • DHCP failure states (169.254.x.x APIPA addresses)
  • Missing default gateway assignments
  • DNS resolution failures
  • Adapter initialization delays
  • Virtual adapter conflicts (Hyper-V / VirtualBox)
  • WiFi adapter re-binding issues
  • Failed reconnect states after sleep or adapter resets

✨ Features

πŸ”Œ WiFi Control Engine

  • Safe WiFi ON/OFF operations
  • Controlled adapter enable/disable handling
  • Clean adapter state transitions
  • Optional DHCP renewal workflow

🌐 Network Recovery Assistance

  • Waits for adapter readiness
  • Supports proper DHCP negotiation
  • Helps avoid APIPA fallback addresses
  • Restores network routing after reconnect

πŸ›‘οΈ Safe Execution Design

  • No registry modifications
  • No Winsock resets
  • No adapter recreation
  • No network stack resets
  • No Hyper-V configuration changes

πŸ“Š Verification & Status Reporting

  • Real-time console feedback
  • Clear operation status messages
  • Connectivity verification checks
  • Simple execution flow

πŸ’» Requirements

  • Windows 10 or Windows 11
  • PowerShell 5.1 or newer
  • Administrator privileges

πŸ“₯ Installation

Clone Repository

git clone https://github.com/tcdoverlord/WiFi-Toggle-Control-System.git
cd WiFi-Toggle-Control-System

Manual Setup

Create a working directory:

C:\Update Code

Place the script inside:

wifi_switch.ps1

πŸš€ Usage

Open PowerShell as Administrator and navigate to the script directory:

cd "C:\Update Code"

Disable WiFi

.\wifi_switch.ps1 off

Typical Use Cases

  • Resetting a stuck adapter
  • Clearing failed connection states
  • Troubleshooting DHCP issues
  • Recovering from unstable WiFi behavior
  • Testing network recovery procedures

Enable WiFi

.\wifi_switch.ps1 on

Recovery Process

The script will:

  1. Enable the WiFi adapter
  2. Wait for adapter initialization
  3. Renew DHCP configuration
  4. Verify connectivity
  5. Confirm successful recovery

πŸ”„ Workflow

START
  ↓
Execute ON/OFF Command
  ↓
Modify Adapter State
  ↓
Wait For Adapter Readiness
  ↓
DHCP Renewal (ON Only)
  ↓
Connectivity Verification
  ↓
END

πŸ“ Project Structure

WiFi-Toggle-Control-System/
β”‚
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ wifi-toggle-control-system-demo.gif
└── wifi_switch.ps1

πŸ“Œ Notes

  • Administrator privileges are required.
  • Designed specifically for WiFi adapter management.
  • Custom adapter names may require minor script adjustments.
  • Intended as a safer alternative to full network reset procedures.

⚠️ Important Information

  • Avoid combining with aggressive network reset tools unless troubleshooting.
  • VPN software may temporarily affect adapter recovery behavior.
  • Only the selected WiFi adapter is modified.
  • No permanent system changes are made.

🎯 Project Goals

This project was created to provide a reliable alternative to networking repair methods that commonly rely on:

  • Full network stack resets
  • Registry modifications
  • Adapter removal and recreation
  • Broad system-wide networking changes

Philosophy

Restore wireless connectivity safely, predictably, and with the smallest possible impact on the operating system.


πŸ‘¨β€πŸ’» Author

TCDOverLord

GitHub: https://github.com/tcdoverlord


πŸ“„ License

This project is licensed under the MIT License.

See the LICENSE file for details.

About

Lightweight PowerShell utility for safe WiFi ON/OFF control with DHCP recovery and network stability protection. Prevents common Windows network failures such as 169.254.x.x fallback, missing routes, and adapter binding issues.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors