Several customers have asked how to create a source media drop that only contains the management tools. SQL Server 2005 had a Tools folder, but this was removed in SQL Server 2008 as the source media layout was changed. The SQL Server 2005 source media layout caused problems when a customer would copy the Servers folder to a network shared and did not include the Tools folder. Below, I have a script that you can use to create a tools only drop from your original SQL Server 2008 source media, excluding the SQL Server Express source media. This script will produce a drop that is 538 MB versus 4.39 GB for the full media.
NOTE:
//// Begin script /////
set source=c:\sqlfull_enuset dest=C:\SQLFULL_ENU_ToolsOnly
REM Copy Root ONLYrobocopy %source% %dest%
REM Copy Root of x86 ONLYrobocopy %source%\x86 %dest%\x86 /XF fixsqlregistrykey_ia64.exe fixsqlregistrykey_x64.exe
robocopy %source%\x86\1033 %dest%\x86\1033
robocopy %source%\x86\help %dest%\x86\help /S
REM Copy redistsrobocopy %source%\x86\redist\DotNetFrameworks %dest%\x86\redist\DotNetFrameworks /S /XF *x64* *ia64* /XD x64robocopy %source%\x86\redist\Powershell %dest%\x86\redist\Powershell /S /XD ia64 x64robocopy %source%\x86\redist\Watson %dest%\x86\redist\Watson /Srobocopy "%source%\x86\redist\Windows Installer" "%dest%\x86\redist\Windows Installer" /S /XD ia64 x64
REM Setup Folder and exclude folders and files that aren't neededrobocopy %source%\x86\Setup %dest%\x86\Setup /S /XD sql_engine_core_inst_loc_msi sql_engine_core_inst_msi sql_engine_core_shared_loc_msi sql_engine_core_shared_msi x64 /XF rsfx.msi rsSharePoint.msi sql_as.msi sql_bids.msi sql_fulltext.msi sql_is.msi sql_rs.msi sqlbrowser.msi SQLServer2008_BOL.msi Synchronization.msi SyncServicesADO.msi sql_as_loc.msi sql_is_loc.msi sql_rs_loc.msi sqlserver2005_bc.msi sqlwriter.msi
//// End script /////