netsh exec
The netsh exec command executes a script file. Windows commands reference
On Windows
Windows
The netsh exec command executes a script file. This script file contains a series of netsh commands that are run sequentially when the script is executed. It automates network configuration tasks by performing complex operations without you needing to manually enter the entries.
netsh exec <ScriptFile>
To load and run your script from the location C:\NetshScripts\network_script.txt, run the following command
netsh exec "C:\NetshScripts\network_script.txt"Identifyexec <ScriptFile>Loads and runs the target script file.