|
Booting multiple servers from one floppy disk
BOOTDISK contents i386
NLDR
NTDETECT.COM
NTBOOTDD.SYS (if you have a BIOS disbled SCSI adapter)
BOOT.INI --- This file can be configured to boot all your NT servers if you enter the ARC path to each system.
Just cut/paste each servers boot.ini ARC paths to one. This will be useless if the NT kernel is corrupt.
[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT Server [SQL Server] 4.00"
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT Server [SQL Server] 4.00 [VGA mode]" /basevideo /sos
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Server [WINS Server] 4.00"
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Server [WINS Server] 4.00 [VGA mode]" /basevideo /sos
C:\="MS-DOS"
Backing up your Emergency Repair Disk (ERD) to a network volume
example batch file
[snip]
REM
REM Purpose: Emergency Repair Disk (ERD)
Creating an Emergency Repair Disk (ERD) ...
@ECHO OFF
DATE /T >> \\ServerName\ComputerName\RDISK.LOG
TIME /T >> \\ServerName\ComputerName\RDISK.LOG
@ECHO ERD Update >> \\ServerName\ComputerName\RDISK.LOG
XCOPY \%WINDIR%\REPAIR\*.* \\ServerName\ComputerName\*.* /S /E /V /H >> \\ServerName\ComputerName\RDISK.LOG
@ECHO ******************* >> \\ServerName\ComputerName\RDISK.LOG
Emergency Repair Disk copied to network ... [snip]
The above batch example + RDISK /S- can be scheduled to run at a certian time one a week using AT
EXAMPLE
Schedule RDISK /s- to run @ 7:00pm on Sunday
and schedule mkerd.bat to run @ 7:30pm on Sunday
Install/Uninstall a Service Pack and Multiple Hotfixes
NOTE: You must unarchive the SP and Hotfixes for the example batch file to work. (e.g nt4sp3_i.exe /x)
Example Install Batch file:
REM
ECHO.
ECHO.
ECHO.
ECHO. Installing Service Pack ...
REM \\Server\Share\sp.dir\sp3\update.exe -u -z
REM
REM -u = unattended
REM -z = no reboot
REM -y = uninstall
ECHO. Install Fixes ...
REM \\Server\Share\sp.dir\lsa\hotfix.exe -m -z
REM \\Server\Share\sp.dir\getadmin\hotfix.exe -m -z
REM \\Server\Share\sp.dir\simptcp\hotfix.exe -m -z
REM \\Server\Share\sp.dir\teardrop\hotfix.exe -m -z
ECHO. Last Hotfix starting now. System will REBOOT ...
REM "This hotfix should have only -m unattended"
REM \\Server\Share\sp.dir\pent\hotfix.exe -m
REM
REM -m = unattended
REM -y = uninstall
REM -z = no reboot
REM
Example UnInstall Batch file:
ECHO.
ECHO.
ECHO. UnInstall Fixes ...
REM \\Server\Share\sp.dir\pent\hotfix.exe -m -y -z
REM \\Server\Share\sp.dir\teardrop\hotfix.exe -m -y -z
REM \\Server\Share\sp.dir\simptcp\hotfix.exe -m -y -z
REM \\Server\Share\sp.dir\getadmin\hotfix.exe -m -y -z
REM \\Server\Share\sp.dir\lsa\hotfix.exe -m -y -z
REM
REM -m = unattended
REM -y = uninstall
REM -z = no reboot
ECHO. Removing Service Pack. System will REBOOT ...
REM REM \\Server\Share\sp.dir\sp3\update.exe -u -y
REM
REM -u = unattended
REM -z = no reboot
REM -y = uninstall
Using FILEMANAGER to secure the Local Filesystem
Give the USERS group:
LIST on C:\> (propagating the permissions throughout the entire directory tree)
ADD on C:\TEMP>
READ on C:\WINNT> (propagating the permissions throughout the entire directory tree)
NO ACCESS on C:\WINNT\Config>
NO ACCESS on C:\WINNT\Repair>
CHANGE on C:\WINNT\System32\Spool\Printers>
ADD on C:\WINNT\System32\Spool\Profiles>
Give the CREATER OWNER group:
FULL CONTROL on C:\TEMP>
FULL CONTROL on D:\USERS>
Copying a file(s) from one NTW/NTS to multiple NTW/NTS.
I found this example on the searching the web and tested it, it worked for me. However, USE AT YOUR OWN RISK!!!
The batch script is called RCOPY.CMD to do this. It consists of 3 pieces, RCOPY.CMD, RCOPYSH.CMD, and CLIENTS. The file CLIENTS lists all of the machines that will be affected the RCOPY script. RCOPYSH.CMD is called from RCOPY.CMD.
For example: "RCOPY c:\winnt\system32\Config.NT c:\winnt\system32", would copy the file "c:\winnt\system32\Config.NT" from current machine to the directory "c:\winnt\system32" on every machine listed in the file "CLIENTS"
To copy entire directory stuctures, you can use the "/s" switch. For example: "RCOPY c:\drivers c:\drivers /s"
Note: These batch scripts use NT 4.0 CMD.EXE extensions, and therefore will not work with NT 3.51. Also, you must be logged in as an "administrator" to run these scripts.
RCOPY.CMD
//----Start---//
@echo off
if "%1" == "" goto USAGE
if "%2" == "" goto USAGE
set FILE=%2
set DRV=%FILE:~0,1%
set FN=%FILE:~2%
set OPT=%3
for /F %%s IN (clients) do call RCOPYSH.CMD %%s %1 %DRV% %FN% %OPT%
goto EXIT
:USAGE
echo USAGE: rcopy [SOURCE] [DEST]
echo.
:EXIT
//----End----//
RCOPYSH.CMD
//----Start---//
@echo off
echo.
if "%1" == "" goto EXIT
echo Copying %2 to %1:%3:%4
xcopy %2 \\%1\%3$\%4 %5
echo.
:EXIT
//----End----//
CLIENTS
//----Start---//
MACHINE-1
MACHINE-2
MACHINE-3
MACHINE-4
MACHINE-5
//----End----//
If you want to know what the ~0,1% means type HELP set > set.txt and read the contents of set.txt
|