You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
71 lines
1.9 KiB
@echo off
|
|
|
|
echo Windows NT WINS Server Performance Counters Installation
|
|
echo.
|
|
echo This installation script makes the following assumptions:
|
|
echo.
|
|
echo o The Windows NT WINS Server has been properly installed.
|
|
echo.
|
|
echo o The LODCTR and REGINI utilities are on the path.
|
|
echo.
|
|
echo o This script is run from the %SystemRoot%\system32 directory.
|
|
echo.
|
|
echo If these assumptions are not valid, please correct and try again.
|
|
echo Press CTRL-C to exist now, otherwise
|
|
pause
|
|
|
|
if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
|
|
if (%SystemRoot%)==() goto BadWinDir
|
|
if not exist ntoskrnl.exe goto BadWinDir
|
|
|
|
|
|
if not exist wins.exe goto WinssvcNotInstalled
|
|
if not exist winsrpc.dll goto WinssvcNotInstalled
|
|
|
|
if not exist winsctrs.h goto CannotInstall
|
|
if not exist winsctrs.ini goto CannotInstall
|
|
if not exist winsctrs.reg goto CannotInstall
|
|
if not exist winsctrs.dll goto CannotInstall
|
|
|
|
regini winsctrs.reg >nul 2>&1
|
|
if errorlevel 1 goto InstallError
|
|
lodctr winsctrs.ini
|
|
if errorlevel 1 goto InstallError
|
|
|
|
echo.
|
|
echo Windows NT WINS Server Performance Counters Installation successful.
|
|
goto Done
|
|
|
|
:InstallError
|
|
|
|
echo.
|
|
echo Cannot install the Windows NT WINS Server Performance Counters.
|
|
goto Done
|
|
|
|
:CannotInstall
|
|
|
|
echo This installation script MUST be run from system32
|
|
echo directory on the appropriate Windows NT Resource Kit disk.
|
|
goto Done
|
|
|
|
:BadProcessor
|
|
|
|
echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
|
|
echo proper processor type (X86, MIPS, etc) before running this script.
|
|
goto Done
|
|
|
|
:BadWinDir
|
|
|
|
echo The SystemRoot environment variable must point to the Windows NT
|
|
echo installation directory (example: C:\NT).
|
|
goto Done
|
|
|
|
:WinssvcNotInstalled
|
|
|
|
echo The Windows NT WINS Server has not been properly installed
|
|
echo on this system. Please install the Windows WINS Server
|
|
echo before installing these performance counters.
|
|
goto Done
|
|
|
|
:Done
|
|
|