Incorporating Scripting Toolkit with your existing process

Before using Scripting Toolkit procedures to perform deployments, use the hwdetect 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 to determine if the current system is an LenovoeServer, xSeries, or BladeCenter server:
hwdetect.exe /s 	
if errorlevel 1 goto NONLenovo 	
if errorlevel 0 goto Lenovo  	

:NONLenovo 	
rem Perform non-Lenovo equipment specific processing here. 	 	

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