Information Technology Reference
In-Depth Information
Using a Command-Line Interface
To configure this setting via the command line, you first need to create a .reg file containing the
Registry key in the following “Using the Registry” section, then use Regedit to import the file
into your local Registry. A shell script to automate this process is as follows. This script takes
the IP address of the interface you're trying to change as a command-line argument. It then
grabs the GUID of the appropriate interface and sets the RegistrationEnabled Registry key
programmatically:
set IPADDRESS=%1
set TFILE=%TEMP%\HWIDfile.tmp
set ON=00000001
set OFF=00000000
wmic nicconfig get ipaddress,settingid > %TFILE%
for /f "tokens=2" %%h in ('type %TFILE% ^| findstr "%IPADDRESS%"') do set HWID=%%h
echo Windows Registry Editor Version 5.00 >%TFILE%
echo >> %TFILE%
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Tcpip\Parameters\Interfaces\%HWID%] >>%TFILE%
echo "RegistrationEnabled"=dword:%OFF% >>%TFILE%
:: regedit /s %TFILE%
del %TFILE% >null
Note Save these commands to a .bat or a .cmd file before running the script.
Using Group Policy
Table 1-4 contains the Group Policy setting that enables or disables dynamic DNS updates for
a Windows Server 2003 computer.
Table 1-4. Dynamic Update Setting
Computer Configuration\Administrative Templates\Network\DNS Client
Path
Policy name
Dynamic Update
Enabled or Disabled
Value
Location
If enabled, dynamic update can be enabled on a per-connection basis on
the client computer. If disabled, dynamic update cannot be enabled on
any connection.
Search WWH ::




Custom Search