# Windows 2012R2 Build-Capture task sequences; are dependent on imported Operating system and Applications in MDT default['mdt']['task_sequences']['build']['windows2012r2'] = { 'Windows2012R2_Gold' => { 'Name' => 'Server 2012 R2', 'TSVersion' => '4.0.0', 'TSType' => 'Build', 'Path' => 'Windows2012r2', 'OSName' => 'Windows2012r2\\Original\\9600\\Windows Server 2012 R2 Standard (Server with a GUI) in Windows2012r2 install.wim', 'OrgName' => 'TheOrchard', 'Template' => 'Build_Server2012R2_Template.xml', 'ID' => 'OSBW2K12R2SG400', 'Customize' => [ { 'Name' => 'Apply Patches - DEV', 'Type' => 'Install Updates Offline', 'GroupName' => 'WinPreOSInstall', 'SelectionProfile' => 'Windows 2012R2 x64 - Gold DEV', 'Description' => 'Installs patches that cannot annot be injected into offline WIM. (.Net as well). If DebugValue set to YES', 'AddAfter' => 'Inject Drivers', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Apply Patches - PROD', 'Type' => 'Install Updates Offline', 'GroupName' => 'WinPreOSInstall', 'SelectionProfile' => 'Windows 2012R2 x64 - Gold', 'Description' => 'Installs patches that cannot annot be injected into offline WIM. (.Net as well)', 'AddAfter' => 'Apply Patches - DEV', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'NO', }, }, { 'Name' => 'Clean OSGUID', 'Type' => 'Set Task Sequence Variable', 'GroupName' => 'Apply OS on Disk', 'TSVarName' => 'OSGUID', 'TSVarValue' => '', 'Condition' => { 'Variable' => 'OSIndex', 'Operator' => 'equals', 'Value' => '1', }, }, { 'Name' => 'Install OS Server Standard Core', 'Type' => 'Install Operating System', 'GroupName' => 'Apply OS on Disk', 'OSGUID' => '{156253f6-bf8f-4a55-aa4e-b8948df23306}', 'Condition' => { 'Variable' => 'OSIndex', 'Operator' => 'equals', 'Value' => '1', }, }, { 'Name' => 'Install OS Server Standard GUI', 'Type' => 'Install Operating System', 'GroupName' => 'Apply OS on Disk', 'OSGUID' => '{50c3602f-2a0b-402f-b92a-90da955d95b6}', 'Condition' => { 'Variable' => 'OSIndex', 'Operator' => 'equals', 'Value' => '2', }, }, { 'Name' => 'Install OS Server Datacenter Core', 'Type' => 'Install Operating System', 'GroupName' => 'Apply OS on Disk', 'OSGUID' => '{b96e2cc3-8317-4bd8-8c5a-220d2b07b5c0}', 'Condition' => { 'Variable' => 'OSIndex', 'Operator' => 'equals', 'Value' => '3', }, }, { 'Name' => 'Install OS Server Datacenter GUI', 'Type' => 'Install Operating System', 'GroupName' => 'Apply OS on Disk', 'OSGUID' => '{964a081e-b8e2-49ad-9050-87f6231c1c56}', 'Condition' => { 'Variable' => 'OSIndex', 'Operator' => 'equals', 'Value' => '4', }, }, { 'Name' => 'Next Phase', 'Type' => 'Run Command Line', 'GroupName' => 'Apply OS on Disk', 'Command' => 'cscript.exe "%SCRIPTROOT%\ZTINextPhase.wsf"', }, { 'Name' => 'PAUSE - If DEBUG was selected in GUI', 'Type' => 'Run Command Line', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Command' => 'cscript.exe "%SCRIPTROOT%\LTISuspend.wsf"', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Create EngLogs_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Configure WU (Manual)_R1', 'Type' => 'Install Application', 'Description' => 'Set WU to Manual State and "Never check for updates"', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Set Network Location_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Copy flat files_R1', 'Type' => 'Install Application', 'Description' => 'CMTrace, Blat', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Microsoft AntiVirus Quality Compatibility Key_R1', 'Type' => 'Install Application', 'Description' => 'Reg key QualityCompat\cadca5fe-87d3-4b96-b7fb-a231484277cc DWORD value', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Install KB3063843_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Install KB3173424_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Microsoft Visual C++ redistributables_R1', 'Type' => 'Install Application', 'Description' => 'Script installs all VC++ versions that are placed in application directory', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Install - Microsoft NET Framework 3.5.1', 'Type' => 'Install Roles and Features', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'OSName' => 'Windows 2012 R2', 'OSFeatures' => 'NET-Framework-Core', 'Description' => 'We already enabled .NET 3.5 when we slipstream patches via DISM. This is here as a place holder if we change to performing it via TS', 'Disable' => 'true', }, { 'Name' => 'Microsoft Windows Management Framework_5.1_R1', 'Type' => 'Install Application', 'Description' => 'NOTE: Rebooted in order to install. *** Issues with installing on exchange servers', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Uninstall SMBv1 Feature', 'Type' => 'Uninstall Roles and Features', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'NOTE: Upon completion of this step it is rebooted. Uses PowerShell to process roles, regardless of full vs. core', 'OSName' => 'Windows 2012 R2', 'OSFeatures' => 'FS-SMB1', }, { 'Name' => 'Install 5 Legacy W2K12R2 patches via DISM_R1', 'Type' => 'Install Application', 'Description' => '5 Legacy patches that cannot be injected into an Offline WIM', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Restart Computer ', 'Type' => 'Restart Computer', 'Description' => 'After injecting the 5 patches', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Remove Old Patches_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Restart Computer 2', 'Type' => 'Restart Computer', 'Description' => 'Pending File Rename Operations (in Session Manager), a second reboot is required. (print spooler drivers).', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'Install latest patches Dev Testing_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'WMF 5.1 screws up KB4457129 and has to be reinstalled, so install final patches after WMF 5.1', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Install latest patches Final_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'WMF 5.1 screws up KB4457129 and has to be reinstalled, so install final patches after WMF 5.1', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'NO', }, }, { 'Name' => 'Restart Computer 3', 'Type' => 'Restart Computer', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'Restart after Final months patches. Change this out to reboot until no more pending reboots found (Future).', }, { 'Name' => 'Copy KUC Local_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'Onyl is TS name contain DEBUG to check patch status.', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Tattoo_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', }, { 'Name' => 'PAUSE - If DEBUG was selected in GUI', 'Type' => 'Run Command Line', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Command' => 'cscript.exe "%SCRIPTROOT%\LTISuspend.wsf"', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Configure WU (Auto)_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'Set WU to Auto. Start service if found not running, enable recommended updates and Opt-In to MS Update if IP address found.', }, { 'Name' => 'PAUSE 2 - If DEBUG was selected in GUI', 'Type' => 'Run Command Line', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Command' => 'cscript.exe "%SCRIPTROOT%\LTISuspend.wsf"', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Sanitize Image_R1', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'Cleanup some of the files/folders we placed (e.g. WU/Temp/Tmp), and empty recycle bin', }, { 'Name' => 'PAUSE 3 - If DEBUG was selected in GUI', 'Type' => 'Run Command Line', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Command' => 'cscript.exe "%SCRIPTROOT%\LTISuspend.wsf"', 'Condition' => { 'Variable' => 'DebugValue', 'Operator' => 'equals', 'Value' => 'YES', }, }, { 'Name' => 'Dataoutput_R2', 'Type' => 'Install Application', 'GroupName' => 'State Restore', 'SubGroup' => 'Custom Tasks', 'Description' => 'Checks OS was not accidently joined to a domain, checks utilizing RDP (must be execute via console). Dump data output of patch state (Dism), SystemInfo, Application installs etc.. to insert into Build version document.', }, ], }, }