Thursday, December 1, 2011

Change Network Settings Of Computer With Click Of Mouse

Change Network Settings Of Laptop With Click Of Mouse

NetSetMan Utility For Network Settings

 First time you launch the utility, you need to set the network card using the refresh button and get the current settings for the first connection. See the snapshots below:
netsetman-first-screen
The below screen shot shows how to get the current network settings for IP Address, Subnet Mask, Default Gateway, DNS servers etc. from existing connection.
get-the-current-settings
You can rename it at your convenience, for simplicity, you can name it in the name of office, home, college etc.
rename-network-settings
You can click on the other tabs, change the Network settings and you just need to press Activate button on right top of the window to activate the current tab’s settings.
when you go back home, just click on home tab and press activate! Its simple as that :)
create-office-profile-and-enter-settings
You can download NetSetMan from here. Let us share the other way of doing it.
 Using Windows Batch File to Change Network Settings (Geeky Way)
  In this method we will use the netsh command provided by windows to change the network settings. Follow the stpes below:
 1. Open Command prompt and type the following command to save the current network settings to a text file, lets name the file as homeNet.txt and save it to c drive of the computer. The command is “netsh -c interface dump > c:\homeNet.txt”
save-network-settings
see the snapshot above
save-home-network-settings
This file gets saved in c drive. This is a text file which saves the network settings for home network.
 2. Now open the Network Connections and change the settings of Office settings.

change-network-settings-to-office
After the settings changed as per office network, press OK to save.
 3.On Command prompt type the following command to save the current network settings to a text file, lets name the file as officeNet.txt and save it to c drive of the computer. The command is “netsh -c interface dump > c:\officeNet.txt”
save-office-settings
See the snapshot of the command above
office-network-settings-saved
This file saves your office network settings.
 4. Now we will create Windows batch files to apply these saved settings on double click of the mouse. These will be two batch files, one for home, one for office. You can have more if you use more than two networks.
 5. Open Notepad and type the following text
“netsh -f c:\homeNet.txt”
This is the command for applying the home network settings.
create-batch-file
Saving the batch file is very important, because if you mistakenly save it as text file, it will not work at all. So go to file menu and choose save as option.
save-as-a-batch-file
On Save as dialogue window, choose the location (I choose desktop for ease of changing settings), now choose file name as homeNet.bat and file type as All Files. Its very important to save it as All files, because it will otherwise save it as normal text file.
saving-the-batch-file
6. Now follow the same procedure in the previous step with the text as:
“netsh -f c:\officeNet.txt”
batch-file-for-office-settings
7. After this you can see these two batch files on the desktop. You just need to double-click on them to change the network settings!
batch-files-created
Simple isn’t it? Please share your views and suggestions.

No comments:

Post a Comment