Incorporating the Scripting Toolkit with your existing process

To incorporate Scripting Toolkit procedures into an existing deployment process, use the HWDETECT.EXE utility to determine if the combined process is being executed on hardware supported by the Scripting Toolkit. You can then add appropriate branches in the batch files to use either the existing process or the Scripting Toolkit process.

For example, you might use the /s option of HWDETECT.EXE to determine if the current system is an IBM eServer™, xSeries, or BladeCenter server:
hwdetect.exe /s 	
if errorlevel 1 goto NONIBM 	
if errorlevel 0 goto IBM  	

:NONIBM 	
rem Perform non-IBM equipment specific processing here. 	 	

:IBM 	
rem Perform IBM eServer or xSeries equipment specific processing here.