|
UnicastInterHostCommSupport.bat contains:
@echo off
if {%1}=={} @echo Syntax: UnicastInterHostCommSupport ClusterIPAddress&goto :EOF
setlocal ENABLEDELAYEDEXPANSION
set IP=%1
set IP="%IP:"=%"
set qry=reg query HKLM\System\CurrentControlSet\Services\WLBS\Parameters\Interface
for /f "Tokens=*" %%g in ('%qry%^|findstr /B /L /C:"HKEY_LOCAL_MACHINE"^|find "{"^|find "}"') do (
for /f "Tokens=2*" %%h in ('reg query %%g /V ClusterIPAddress^|find %IP%') do (
@echo reg add %%g /V UnicastInterHostCommSupport /T REG_DWORD /F /D 1
reg add %%g /V UnicastInterHostCommSupport /T REG_DWORD /F /D 1
NLB RELOAD
)
)
endlocal
|
|