View Single Post
Old 06-14-2011, 02:45 PM   #1
zhende21
 
Posts: n/a
Default Office 2007 Enterprise windows batch custom IP, su

Reinstall the windows system, as well lazy to remember the definition of local connection in the configuration details. But easy methods to obtain lazy to restore the network configuration of a essential to it, Listed here are a number of methods:
Technique 1:

1. To again up what existing configuration facts:

netsh interface ip dump> d: ip.txt

2. restore:

around the command line Sort the subsequent command:

netsh-fd: ip.txt

to the D drive subsequent ip.txt file restore the network configuration within the backup.
Strategy Two:

batch modifications straight by means of the windows network connection IP, subnet mask, gateway,Microsoft Office 2010 Pro Plus, dns.
1. Set a static IP deal with assigned the subsequent batch:

@ title network configurations batch

@ shade 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 preferred 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% of the set is completed,Microsoft Office Professional 2007, the configuration is as follows:

echo IP Deal with:percent IP%

echo the default gateway:percent GW%

echo subnet mask:percent MASK%

echo Favored DNS Server:% DNS1%

echo Alternate DNS server:percent DNS2 percent

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

make sure you modify the settings corresponding to the red part on the above, a new text file,Windows 7 Professional Product Key, conserve as. bat batch file suffix, If IP.bat, paste the over code, preserve. Double-click the file to execute.
Description:

NIC: network connection identify,Office 2007 Enterprise, usually

IP: ip tackle inside the network card

MASK: mask

GW: default gateway

DNS1 and DNS2 will be the preferred and alternate DNS server.

GM: gwmetric default gateway metric. Should the gateway is set to 'none',Microsoft Office Professional Plus 2010, it is best to not set this subject. Often 1.
two. Is set to dynamically assign IP addresses (ie IP deal with automatically, acquire DNS server tackle immediately) on the batch:

; @ echo off

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

netsh interface ip set handle title = Local Area Connection identify =
  Reply With Quote

Sponsored Links