Deploying Windows Server 2003 R2 in MDT 2008
Credit goes to another Setup and Deployment MVP, Mikael Nyström (Who just happens to work at the same company I do : )
- Add the Windows Server 2003 R2 Operating System (CD1) to the deployment workbench, and create a Task Sequence for it.in my example is was added it into D:\Distribution\Operating Systems\Windows Server 2003 R2 Enterprise SP2 Eng x86
- In the above folder, create a subfolder structure starting with $OEM$. It should look like this:
D:\Distribution
-Operating System
–Windows Server 2003 R2 Enterprise SP2 Eng x86
—$OEM$
—-$1
—–R2 - From Windows Server 2003 R2 CD2, copy the CMPNENTS folder to D:\Distribution\Operating Systems\Windows Server 2003 R2 Enterprise SP2 Eng x86\$OEM$\$1\R2
- In the $OEM$\$1\R2 folder, create a batchfile named InstallR2.cmd (using below content)
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v SourcePath /t REG_SZ /d C:\Windows\Source\i386 /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v ServicePackSourcePath /t REG_SZ /d C:\R2\CMPNENTS\R2 /f
C:\R2\CMPNENTS\R2\setup2.exe /q /a /srNote:
There are only three lines, line 1 and 2 beginning with “reg”, line 3 beginning with “C:\R2” these lines may have been wrapped. - For the Windows Server 2003 R2 Task Sequence, update the [GUIRunOnce] section in Unattend.txt to look like below:
[GUIRunOnce]
“C:\R2\InstallR2.cmd”
“cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start”
“cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start”
“cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start”
“cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start”
Note: If you also want to disable the Windows Server Post-Setup Security Updates window, you have two options for doing that.
Option 1:
Set “HKLM\Software\Microsoft\Windows\CurrentVersion\ServerOOBE\SecurityOOBE\DontLaunchSecurityOOBE” to “0”
This will disable the Windows Server Post-Setup Security Updates window without turning off the firewall (Thanks Rob for the great tip)
Option 2:
Turn off the firewall in unattend.txt using the below settings (Warning, make sure you are building your reference images on an isolated segment before doing this)
[WindowsFirewall] Profiles = WindowsFirewall.TurnOffFirewall
[WindowsFirewall.TurnOffFirewall]
Mode = 0