NetSwitcher is a PowerShell script that allows you to easily switch between different IP configurations on Windows. You can set it to DHCP or specify a static IP address.
-
Clone this repository or download it as a ZIP archive.
git clone https://github.com/your-username/NetSwitcher.git
-
Open PowerShell as an administrator.
-
Navigate to the directory where the
install-netswitch.ps1
script is located.cd path\to\NetSwitcher
-
Run the installer script.
.\install-netswitch.ps1
Follow any on-screen prompts to complete the installation.
Run the script in PowerShell as an administrator.
-
To display help text:
.\netswitch.ps1
-
To initialize the config file:
.\netswitch.ps1 init
-
To set the IP to DHCP:
.\netswitch.ps1 auto
-
To set a static IP:
.\netswitch.ps1 192.168.1.2/24