Windows netsh settings script
File type: Configuration file
A .netsh file is a plain-text script of Windows network settings commands. It is used with Microsoft Windows netsh.exe.
File type category:
Configuration file
Date updated: November 22, 2026
Netsh.exe is a command-line utility included with Microsoft Windows for viewing and changing network settings. A .netsh file can hold commands that apply a set of settings, such as a user-created work or home configuration.
The script can be created with the netsh dump command, which outputs commands for supported current settings. The resulting file is a plain-text command script, not a settings profile that Windows switches automatically.
To apply the settings, run the script with netsh.exe. The file can be given a name such as netset.netsh, but the .netsh extension itself does not make Windows apply it when opened. The script's effect depends on the commands it contains and the permissions available when it is run.
To inspect the contents, open the .netsh file in a text editor. To run its commands, open an elevated Command Prompt when required and use netsh -f followed by the file name, for example: netsh -f netset.netsh. Commands that change network settings may require administrator privileges.
A .netsh script does not generally need conversion to another format. To create a script from the current supported settings, use netsh dump and redirect its output to a .netsh file, for example: netsh dump > netset.netsh.