Powershell script to setup windows port forwarding using native netsh client.
Install:
git clone https://github.com/deepzec/Win-PortFwd.git
Usage:
.\win-portfwd.ps1
orpowershell.exe -noprofile -executionpolicy bypass -file .\win-portfwd.ps1
Note: This script require admin privileges to run, this script will automatically try to elevate the privilges if you are running this script under normal user privileges.