I'm in need of a second (or few hundred) pairs of eyes as I think I've made a mistake in the CustomSetting.ini or BootStrap.ini since its not working as expected for captures. I've customized both INI files and tested several OS deployments (physical machines, virtual machines, & specific models etc) with success suggesting they're setup properly for deployments. But I'm guessing something in there may be contributing to my inability to sysprep & capture the image.
So far, all I've done is use MDT2012 to deploy Server 2008 R2 & run Windows Update. Once the TS finished, I manually ran Windows Updates until it was completely patched. Now I want to capture an image of this & use it for deployment. I created a new 'Sysprep & Capture' Task Sequence to capture an image of Server Standard 2008 R2.
1.From the machine I'm trying to sysprep I ran: cscript \\MDTWDSServer\DeploymentShare$\scripts\LiteTouch.wsf
2.The Deployment Wizard window displays
3.I select my 'Capture Image' Task Sequence for Server Standard 2008 & click Next
4.The next step asks me for the Admin password & click next
5.The next step is to begin the process
6.If I expand details the deploymenttype is "CUSTOM"
7.I'm missing the capture screen
Right now the machine is on VLAN 105, and based on what I've seen, it is executing what's in the [VLAN105] section before the [Default] section.
VLAN105 is my test VLAN, and I was trying to create a CS and BootStrap that would give me total flexibility if I needed to deploy a specific image, or specific applications or to perform captures etc. The rest of the VLANs will use the default TaskSequence determined either by make/model (like the X201) or just use the default for normal imaging. Perhaps this is what's messing me up.
[Settings]
Priority=Init,SetSysSerial,SetSysModel,SysModel,DefaultGateway,Default
Properties=DebugEcho,Site,SysSerial,SysModel,DeploymentServer
[Init]
DebugEcho=True
[SetSysSerial]
UserExit=SysSerial.vbs
SysSerial=#SetSerialAlias()#
[SetSysModel]
UserExit=SysModel.vbs
SysModel=#SetModelAlias()#
[X20]
'Specifically for Lenovo ThinkPad X201
JoinWorkgroup=WORKGROUP
TaskSequenceID=VANILLA-001
OSDNetworkJoinType=1
OSDWorkgroupName=WORKGROUP
[DefaultGateway]
192.172.21.1=BR
192.171.21.1=LD
192.171.22.1=LD
192.171.23.1=LD
192.171.24.1=LD
192.170.21.1=SV
192.169.21.1=SF
192.169.36.1=SF
192.169.37.1=SF
192.169.38.1=SF
192.169.39.1=SF
192.169.40.1=SF
192.165.43.1=LA
192.165.44.1=LA
192.165.45.1=LA
192.167.21.1=DN
192.166.31.1=NY
192.166.33.1=NY
192.166.34.1=NY
192.166.35.1=NY
192.166.36.1=NY
192.168.21.1=VA
192.168.43.1=DC
192.168.44.1=DC
192.168.41.1=DC
192.168.42.1=DC
192.168.39.1=DC
192.168.40.1=DC
192.168.37.1=DC
192.168.38.1=DC
192.168.35.1=DC
192.168.36.1=DC
192.168.33.1=DC
192.168.34.1=DC
192.168.26.1=DC
192.168.23.1=DC
192.168.24.1=DC
192.168.21.1=DC
192.168.22.1=DC
'Special VLANs
192.168.105.1=VLAN105
'192.168.18.1=VLAN18
192.168.18.1=DC
Site=BR
DeploymentServer=MDTWDSServer
[LD]
Site=LD
DeploymentServer=MDTWDSServer
[SV]
Site=SV
DeploymentServer=MDTWDSServer
[SF]
Site=SF
DeploymentServer=MDTWDSServer
[LA]
Site=LA
DeploymentServer=MDTWDSServer
[DN]
Site=DN
DeploymentServer=MDTWDSServer
[NY]
Site=NY
DeploymentServer=MDTWDSServer
[VA]
Site=VA
DeploymentServer=MDTWDSServer
[DC]
Site=DC
DeploymentServer=MDTWDSServer
[VLAN18]
Site=V18
DeploymentServer=MDTWDSServer
SkipAdminPassword=NO
SkipApplications=NO
SkipAppsOnUpgrade=NO
SkipBitLocker=NO
SkipCapture=NO
SkipComputerName=NO
SkipComputerBackup=NO
SkipDeploymentType=NO
SkipDomainMembership=NO
SkipLocaleSelection=NO
SkipPackageDisplay=NO
SkipProductKey=NO
SkipSummary=NO
SkipTaskSequence=NO
SkipTimeZone=NO
SkipUserData=NO
'-------below orig
SkipBDDWelcome=NO
SkipWizard=NO
SkipFinalSummary=NO
[VLAN105]
Site=V105
DeploymentServer=MDTWDSServer
SkipAdminPassword=NO
SkipApplications=NO
SkipAppsOnUpgrade=NO
SkipBitLocker=NO
SkipCapture=NO
SkipComputerName=NO
SkipComputerBackup=NO
SkipDeploymentType=NO
SkipDomainMembership=NO
SkipLocaleSelection=NO
SkipPackageDisplay=NO
SkipProductKey=NO
SkipSummary=NO
SkipTaskSequence=NO
SkipTimeZone=NO
SkipUserData=NO
'-------below orig
SkipBDDWelcome=NO
SkipWizard=NO
SkipFinalSummary=NO
[Default]
OSInstall=Y
SkipBDDWelcome=YES
SkipWizard=YES
SkipFinalSummary=YES
DeploymentType=NEWCOMPUTER
AdminPassword=AdminPassword
JoinDomain=DOMAIN
DomainAdmin=DomainAdminLogin
DomainAdminDomain=DOMAIN
DomainAdminPassword=DomainAdminPassword
MachineObjectOU=OU=STAGING-WIN7,DC=F,DC=Q,DC=D,DC=N
KeyboardLocale=en-US
'BuildID=APW7_002
TaskSequenceID=APW7_002
KeyboardLocale=en-US
UserLocale=en-US
UILanguage=en-US
TimeZone=035
TimeZoneName=Eastern Standard Time
OSDComputerName=%Site%-%SysModel%-%SysSerial%
DeployRoot=\\%DeploymentServer%.f.q.d.n\DeploymentShare$
SLShare=\\%DeploymentServer%.f.q.d.n\deploymentshare$\Logs
SLShareDynamicLogging=\\%DeploymentServer%.f.q.d.n\deploymentshare$\Logs
EventShare=\\%DeploymentServer%.f.q.d.n\deploymentshare$\Logs\Events
EventService=http://%DeploymentServer%.f.q.d.n:9800
_SMSTSOrgName=%Site%@%DefaultGateway% %TaskSequenceID% %DeploymentServer%
Below is the output of running LiteTouch.wsf
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Property LogPath is now = C:\MININT\SMSOSD\OSDLOGS
Microsoft Deployment Toolkit version: 6.0.2223.0
Property Debug is now = FALSE
ZTIUtility!GetAllFixedDrives (False)
New ZTIDiskPartition : \\V105-VM-564DD28\root\cimv2:Win32_DiskPartition.DeviceID="Disk #0, Partition #0" \\V105-VM-564DD28\root\cimv2:Win32_LogicalDisk.DeviceID="E:"
New ZTIDisk : \\V105-VM-564DD28\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0"
New ZTIDiskPartition : \\V105-VM-564DD28\root\cimv2:Win32_DiskPartition.DeviceID="Disk #0, Partition #1" \\V105-VM-564DD28\root\cimv2:Win32_LogicalDisk.DeviceID="C:"
New ZTIDisk : \\V105-VM-564DD28\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0"
ZTIUtility!GetAllFixedDrives = E: C:
No task sequence is in progress.
Found OS Disk: C:
Found FirstPossibleSystemDrive: C:
Property SMSTSLocalDataDrive is now = C:
Not running within WinPE.
Property DeploymentMethod is now = UNC
DeploymentMethod = UNC
Property DeployRoot is now = \\MDTWDSServer.f.q.d.n\deploymentshare$
Validating connection to \\MDTWDSServer.f.q.d.n\deploymentshare$
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Found Existing UNC Path Z: = \\MDTWDSServer.f.q.d.n\deploymentshare$
DeployRoot = \\MDTWDSServer.f.q.d.n\deploymentshare$
Property DeployDrive is now = Z:
DeployDrive = Z:
Property PHASE is now = VALIDATION
Property DeploymentType is now = REFRESH
Phase = VALIDATION
About to run command: wscript.exe "\\MDTWDSServer.f.q.d.n\deploymentshare$\Scripts\ZTIGather.wsf" /inifile:Bootstrap.ini
Command completed, return code = 0
Validating connection to \\MDTWDSServer.f.q.d.n\DeploymentShare$
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Found Existing UNC Path Z: = \\MDTWDSServer.f.q.d.n\DeploymentShare$
About to run command: wscript.exe "\\MDTWDSServer.f.q.d.n\deploymentshare$\Scripts\ZTIGather.wsf" /nolocalonly
Command completed, return code = 0
Validating connection to \\MDTWDSServer.f.q.d.n\DeploymentShare$
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Found Existing UNC Path Z: = \\MDTWDSServer.f.q.d.n\DeploymentShare$
Property TaskSequenceName is now = AP Win7 Ent Patched
Property TaskSequenceVersion is now = 1.0
Property TaskSequenceTemplate is now = Client.xml
Property OSGUID is now = {bca4213c-5ea0-4e9b-be43-cd8af51efada}
Property ImageIndex is now = 1
Property ImageSize is now = 9812
Property ImageFlags is now = ENTERPRISE
Property ImageBuild is now = 6.1.7601.17651
Property ImageProcessor is now = x86
Property ImageLanguage001 is now = en-US
InstallFromPath: \\MDTWDSServer.f.q.d.n\DeploymentShare$\Operating Systems\Win 7 Ent Patched with Sysprep Files\CAPTURE-001_20120530001 - Copy.wim
Property InstallFromPath is now = \\MDTWDSServer.f.q.d.n\deploymentshare$\Operating Systems\Win 7 Ent Patched with Sysprep Files\CAPTURE-001_20120530001 - Copy.wim
SourcePath: \\MDTWDSServer.f.q.d.n\DeploymentShare$\Operating Systems\Win 7 Ent Patched with Sysprep Files
Property SourcePath is now = \\MDTWDSServer.f.q.d.n\DeploymentShare$\Operating Systems\Win 7 Ent Patched with Sysprep Files
Property LTIDirty is now = TRUE
About to run command: MSHTA.exe "\\MDTWDSServer.f.q.d.n\DeploymentShare$\Scripts\Wizard.hta" /definition:DeployWiz_Definition_ENU.xml
Command completed, return code = 0
Validating connection to \\MDTWDSServer.f.q.d.n\DeploymentShare$
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Found Existing UNC Path Z: = \\MDTWDSServer.f.q.d.n\DeploymentShare$
Property DeployDrive is now = Z:
DeployDrive = Z:
Property ResourceRoot is now = \\MDTWDSServer.f.q.d.n\DeploymentShare$
DeploymentType = CUSTOM
ResourceRoot = \\MDTWDSServer.f.q.d.n\DeploymentShare$
Property ResourceDrive is now = Z:
ResourceDrive = Z:
Property _SMSTSPackageName is now = Lite Touch Installation
SMS Task Sequencer found at \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64, copying to C:\MININT\Tools\X64
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\CcmCore.dll to C:\MININT\Tools\X64\CcmCore.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\CcmUtilLib.dll to C:\MININT\Tools\X64\CcmUtilLib.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\Smsboot.exe to C:\MININT\Tools\X64\Smsboot.exe
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\SmsCore.dll to C:\MININT\Tools\X64\SmsCore.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TsCore.dll to C:\MININT\Tools\X64\TsCore.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TSEnv.exe to C:\MININT\Tools\X64\TSEnv.exe
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TsManager.exe to C:\MININT\Tools\X64\TsManager.exe
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TsmBootstrap.exe to C:\MININT\Tools\X64\TsmBootstrap.exe
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TsMessaging.dll to C:\MININT\Tools\X64\TsMessaging.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TsProgressUI.exe to C:\MININT\Tools\X64\TsProgressUI.exe
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\TSResNlc.dll to C:\MININT\Tools\X64\TSResNlc.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\xprslib.dll to C:\MININT\Tools\X64\xprslib.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Tools\X64\00000409\tsres.dll to C:\MININT\Tools\X64\00000409\tsres.dll
Copying \\MDTWDSServer.f.q.d.n\DeploymentShare$\Control\CAPTURE-002\TS.XML to C:\MININT\Tools\X64
Copying C:\MININT\SMSOSD\OSDLOGS\VARIABLES.DAT to C:\MININT\Tools\X64\VARIABLES.DAT
LTI beginning deployment
Validating connection to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\Events
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Event 41016 sent: LTI beginning deployment
Event 41016 sent: LTI beginning deployment
About to run command: "C:\MININT\Tools\X64\TsmBootstrap.exe" /env:SAStart
Property LTIDirty is now = TRUE
Command completed, return code = 0
LTI deployment completed successfully
Validating connection to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\Events
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
Event 41015 sent: LTI deployment completed successfully
Event 41015 sent: LTI deployment completed successfully
Property RetVal is now = 0
Validating connection to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs
Already connected to server MDTWDSServer.f.q.d.n as that is where this script is running from.
TargetOS is the current SystemDrive
Copying C:\Users\ADMINI~1\AppData\Local\Temp\SMSTSLog\SMSTS.LOG to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\SMSTS.LOG
Copying C:\windows\Debug\Netsetup.log to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28Copying C:\windows\Panther\setupact.log to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\Panther
Copying C:\windows\Panther\setuperr.log to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\Panther
Copying C:\windows\Panther\UnattendGC\setupact.log to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\Panther\UnattendGC
Copying C:\windows\Panther\UnattendGC\setuperr.log to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\Panther\UnattendGC
Copying log C:\MININT\SMSOSD\OSDLOGS\BDD.log contents to \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\BDD.LOG
Unable to open \\MDTWDSServer.f.q.d.n\deploymentshare$\Logs\V105-VM-564dd28\BDD.LOG for appending: Permission denied (70)
CleanStartItems Complete
Unregistering TSCore.dll.
About to run command: wscript.exe "\\MDTWDSServer.f.q.d.n\deploymentshare$\Scripts\LTICleanup.wsf"
It completes without error but doesn't sysprep & capture an image. What's interesting is that the log shows the TaskSequenceTemplate as Client.xml, shouldn't it be CaptureOnly.xml? I've pulled the logs from C:\Windows\System32\Temp\DeploymentLogs from the server & saved them here: http://sdrv.ms/N1Ns0P
I've read throguh Mitch Tulloch's (http://www.windowsnetworking.com/Mitch_Tulloch/) MDT2010 guide [a few times over the past 2 years] and I remembered him saying something interesting about the Sysprep & Capture process. I went back to that particular section (http://www.windowsnetworking.com/articles_tutorials/Deploying-Windows-7-Part11.html) of the guide & found what I was looking for. He said...
quote:
"Now before you use this new task sequence to sysprep and capture an image of your reference computer, I recommend that you restore the CustomSettings.ini and Bootstrap.ini files for your deployment share to their original values. Specifically, change your CustomSettings.ini file back to this:
[Settings]
Priority=Default
Properties=MyCustomProperty
[Default]
OSInstall=Y
SkipAppsOnUpgrade=YES
SkipCapture=NO
SkipAdminPassword=YES
SkipProductKey=YES
And then change your BootStrap.ini file back to this:
[Settings]
Priority=Default
[Default]
DeployRoot=\\SEA-DC1\DeploymentShare$
I recommend these changes because of my own personal experience trying to get the Sysprep and Capture task sequence template working properly."
This is about 2 years old, and I figured maybe it was a 2010 bug that's since been fixed in MDT2012. I'm guessing it'll probably work if I do it this way, but I'd prefer to not have to switch INI's each time. But if that's the way it is then it is what it is! Just seeking advice from the community.
I went as far as adding the following lines to my CS
BackupShare=\\%DeploymentServer%\DeploymentShare$\Captures
BackupDir=%ComputerName%
ComputerBackupLocation=AUTO
DoCapture=YES
But it still doesn't capture.
What to do?