View Single Post
Old 04-14-2011, 12:06 PM   #1
shishang82
Major
 
Join Date: Mar 2011
Posts: 646
shishang82 is on a distinguished road
Default Office Standard 2010 Key windows batch custom IP,

Reinstall the windows program, also lazy to bear in mind the definition of local connection through the configuration facts. But how you can achieve lazy to restore the network configuration of the key to it, Listed here are a couple of approaches:
Method 1:

one. To again up what existing configuration information:

netsh interface ip dump> d: ip.txt

two. restore:

on the command line Kind the following command:

netsh-fd: ip.txt

to the D drive following ip.txt file restore the network configuration in the backup.
Strategy Two:

batch modifications straight via the windows network connection IP,Office Standard 2010 Key, subnet mask,Microsoft Office Standard 2010, gateway, dns.
1. Set a static IP deal with assigned the subsequent batch:

@ title network settings batch

@ colour 0B

@ echo off

set NIC =
set IP = ; set GW = >
set DNS2 =

netsh interface ip set address% NIC% static% IP%% MASK%% GW%% GM%

@ echo is Set the favored DNS server

netsh interface ip set dns% NIC% static% DNS1% main

@ echo Setting up alternate DNS server

netsh interface ip add dns% NIC%% DNS2%

echo ------------ --------------------

echo% NIC% with the set has long been finished,Windows 7 Key, the configuration is as follows:

echo IP Deal with:% IP%

echo the default gateway:percent GW%

echo subnet mask:% MASK%

echo Preferred DNS Server:percent DNS1%

echo Alternate DNS server:% DNS2 percent

echo --------------------------------
pause

make sure you modify the configurations corresponding to the red part of the over, a brand new text file,Microsoft Office 2010 Pro, help save as. bat batch file suffix, If IP.bat, paste the above code, preserve. Double-click the file to execute.
Description:

NIC: network connection title,Office Professional Plus 2010 Key, commonly

IP: ip handle within the network card

MASK: mask

GW: default gateway

DNS1 and DNS2 would be the chosen and alternate DNS server.

GM: gwmetric default gateway metric. Should the gateway is set to 'none', you ought to not set this area. Generally one.
two. Is set to dynamically assign IP addresses (ie IP address automatically, acquire DNS server handle instantly) of your batch:

; @ echo off

@ echo set the NIC to instantly acquire IP tackle ...

netsh interface ip set tackle identify = Nearby Region Connection name =
shishang82 is offline   Reply With Quote

Sponsored Links