Jump to content




anyweb

The CM12 BitLocker FrontEnd HTA



Recommended Posts

Anyhoo, turns out the offline scheduled updates applied to the OS image borked it. Everything is working like a dream now, the bits I have tried anyway. Need to do some backup testing now.

 

Great stuff!

 

Keeop

Share this post


Link to post
Share on other sites


glad to here it !

Share this post


Link to post
Share on other sites

OK, now having some issues with the Backup section. All the various options are bombing the TS. Looks like the ZTIBackup script is returning code 5456. Is this something you've come across before?

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

Done some digging and it looks like it's this section from the ZTI scripts:

 

If IsEmpty(GetOSTargetDriveLetterEx) then

  oLogging.CreateEntry "DestinationDisk and Partition did not yield a target Partition.", logTypeInfo

  If bRequired then
    oLogging.ReportFailure "Unable to determine Destination Disk, Partition, and/or Drive. See BDD.LOG for more information.", 5456

  End if 
Else

So, the function GetOSTargetDriveLetterEx is not yielding any results in the ZTIUtility.vbs script.

 

I shall have a poke around but I'm no expert, so any help would be appreciated!

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

can you attach the smsts.log so i can see exactly where it's failing

Share this post


Link to post
Share on other sites

Hi,

 

I'll enclose the relevant section:

 

 

<![LOG[set a global environment variable _SMSTSNextInstructionPointer=115]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[Expand a string: tsenv.exe "ComputerBackupLocation=C:\Backup"]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Expand a string: ]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="commandline.cpp:228">
<![LOG[set command line: tsenv.exe "ComputerBackupLocation=C:\Backup"]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="commandline.cpp:731">
<![LOG[start executing the command line: tsenv.exe "ComputerBackupLocation=C:\Backup"]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:2930">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:2959">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Executing command line: tsenv.exe "ComputerBackupLocation=C:\Backup"]LOG]!><time="11:49:04.926-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="commandline.cpp:827">
<![LOG[Finished with error code 0]LOG]!><time="11:49:04.958-60" date="06-04-2014" component="TSEnv" context="" type="1" thread="1956" file="main.cpp:93">
<![LOG[Process completed with exit code 0]LOG]!><time="11:49:04.958-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:49:04.958-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:3012">
<![LOG[successfully completed the action (Set ComputerBackupLocation to C:\Backup) with the exit win32 code 0]LOG]!><time="11:49:04.958-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:3038">
<![LOG[MP server http:/xxx. Ports 80,443. CRL=false.]LOG]!><time="11:49:04.958-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="utils.cpp:5300">
<![LOG[setting authenticator]LOG]!><time="11:49:04.989-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="utils.cpp:5322">
<![LOG[set authenticator in transport]LOG]!><time="11:49:04.989-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="libsmsmessaging.cpp:7751">
<![LOG[sending StatusMessage]LOG]!><time="11:49:05.020-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="libsmsmessaging.cpp:4025">
<![LOG[setting message signatures.]LOG]!><time="11:49:05.036-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="libsmsmessaging.cpp:1297">
<![LOG[setting the authenticator.]LOG]!><time="11:49:05.036-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: xxx:80 CCM_POST /ccm_system/request]LOG]!><time="11:49:05.036-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="11:49:05.083-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="libsmsmessaging.cpp:8956">
<![LOG[set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="11:49:05.083-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="11:49:05.083-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="11:49:05.083-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Clear local default environment]LOG]!><time="11:49:05.117-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:807">
<![LOG[updated security on object C:\_SMSTaskSequence.]LOG]!><time="11:49:05.286-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="utils.cpp:1121">
<![LOG[set a global environment variable _SMSTSNextInstructionPointer=116]LOG]!><time="11:49:05.301-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a TS execution environment variable _SMSTSNextInstructionPointer=116]LOG]!><time="11:49:05.301-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:386">
<![LOG[set a global environment variable _SMSTSInstructionStackString=0 84 113]LOG]!><time="11:49:05.301-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a TS execution environment variable _SMSTSInstructionStackString=0 84 113]LOG]!><time="11:49:05.301-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:414">
<![LOG[save the current environment block]LOG]!><time="11:49:05.301-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:833">
<![LOG[successfully save execution state and environment to local hard disk]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="engine.cxx:255">
<![LOG[start executing an instruction. Instruction name: Full WIM backup of old computer. Instruction pointer: 116]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="engine.cxx:117">
<![LOG[set a global environment variable _SMSTSCurrentActionName=Full WIM backup of old computer]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSNextInstructionPointer=116]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[set a local default variable SMSTSDisableWow64Redirection]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:700">
<![LOG[set a local default variable _SMSTSRunCommandLineAsUser]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:700">
<![LOG[set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:668">
<![LOG[Evaluating an AND expression]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:593">
<![LOG[Evaluating a variable condition expression]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:776">
<![LOG[Variable = DoBackup]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:794">
<![LOG[Value = True]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:795">
<![LOG[Operator = equals]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:796">
<![LOG[Expand a string: equals]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Expand a string: DoBackup]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Expand a string: True]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[The variable condition expression is evaluated to be TRUE]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:900">
<![LOG[The AND expression is evaluated to be TRUE]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:626">
<![LOG[The condition for the action (Full WIM backup of old computer) is evaluated to be true]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:2914">
<![LOG[Expand a string: smsswd.exe /run: Cscript "%ScriptRoot%\ZTIBackup.wsf"]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Expand a string: ]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="commandline.cpp:228">
<![LOG[set command line: smsswd.exe /run: Cscript "%ScriptRoot%\ZTIBackup.wsf"]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="commandline.cpp:731">
<![LOG[start executing the command line: smsswd.exe /run: Cscript "%ScriptRoot%\ZTIBackup.wsf"]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:2930">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:2959">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="executionenv.cxx:782">
<![LOG[Executing command line: smsswd.exe /run: Cscript "%ScriptRoot%\ZTIBackup.wsf"]LOG]!><time="11:49:05.395-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="commandline.cpp:827">
<![LOG[[ smsswd.exe ]]LOG]!><time="11:49:05.426-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="main.cpp:289">
<![LOG[PackageID = '']LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="main.cpp:318">
<![LOG[baseVar = '', ContinueOnError='']LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="main.cpp:319">
<![LOG[ProgramName = 'Cscript "C:\_SMSTaskSequence\WDPackage\Scripts\ZTIBackup.wsf"']LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="main.cpp:320">
<![LOG[swdAction = '0001']LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="main.cpp:321">
<![LOG[set command line: Run command line]LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="0" thread="1960" file="commandline.cpp:731">
<![LOG[Working dir 'not set']LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="runcommandline.cpp:542">
<![LOG[Executing command line: Run command line]LOG]!><time="11:49:05.442-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="commandline.cpp:827">
<![LOG[Process completed with exit code 5456]LOG]!><time="11:49:05.598-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="commandline.cpp:1123">
<![LOG[Command line returned 5456]LOG]!><time="11:49:05.598-60" date="06-04-2014" component="InstallSoftware" context="" type="1" thread="1960" file="runcommandline.cpp:565">
<![LOG[Process completed with exit code 5456]LOG]!><time="11:49:05.616-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:49:05.630-60" date="06-04-2014" component="TSManager" context="" type="1" thread="1832" file="instruction.cxx:3012">
<![LOG[Could not find CCM install folder. Don't use ccmerrors.dll]LOG]!><time="11:49:05.630-60" date="06-04-2014" component="TSManager" context="" type="0" thread="1832" file="string.cpp:1364">
<![LOG[Failed to run the action: Full WIM backup of old computer.
Unknown error (Error: 00001550; Source: Unknown)]LOG]!><time="11:49:05.630-60" date="06-04-2014" component="TSManager" context="" type="3" thread="1832" file="instruction.cxx:3103">

 

 

I have run through the scripts and it's definitely the ZTIUtility script that's returning the error due to it not being able to set the GetOSTargetDriveLetterEx value.

 

Does something like OSDTargetDrive need to be set in the TS?

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

what version of mdt are you using ? the error doesnt tell me much, i'd prefer to see the whole smsts.log so that i can see what has succeeded or failed prior to this..

 

is your computername being detected correctly by the webservice a few steps up ? that's where the name of the backup file is located and that could be the cause of your error

Share this post


Link to post
Share on other sites

Thanks anyweb.

 

I'll generate one again without the variable dump. Yes, it's getting the computer name OK. It's working out the correct folder to back up TO, i.e. C:\backup or \\network\backup, it's failing to find the source disk - i.e., what to image/backup. I'll put in that OSDTargetDrive variable and I imagine it will work.

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

Yep, creating the WIM on the network share right now.

 

I am getting 'OSDTargetDriveCache is DIRTY' in the logs - can you please explain what that means?

 

Might have spoken too soon as well. The .WIM file seems stuck at 1kb, although I don't really know how ImageX works - does it create a 'temp' file somewhere else or anything like that? I'll give it a little longer then kill it and get that log across.

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

OK, thanks. Shouldn't affect anything then.

 

Log attached.

 

I noticed there is a step to set OSPART (Check DriveLetter and Set OSPART variable) in the Scanstate section. Maybe if I moved this to the beginning of the Backup section that would solve the problem?

 

Cheers.

Keeop

smsts.log

Share this post


Link to post
Share on other sites

i'll do a quick test of the backup functionality that you are using and come back to you.

Share this post


Link to post
Share on other sites

ok i got the same failure, i guess that was one of those things i didn't test, :rolleyes:

 

I've copied the CheckDriveLetter and set OSPART step to be the first step in the Backup Local group, then replaced all references to C: with %OSPART%, i'll test it now and report back in a few minutes.

Share this post


Link to post
Share on other sites

same problem, i'll dig into it tomorrow and come back to you...

Share this post


Link to post
Share on other sites

it's the MDT Toolkit package, created when you create your first MDT Integrated task sequence in CM12

Share this post


Link to post
Share on other sites

Cheers. Glad it wasn't just me! ;)

 

Keeop

 

which version of MDT are you using ?

Share this post


Link to post
Share on other sites

please try the latest version of MDT 2013 and tell me what result you get.

Share this post


Link to post
Share on other sites

Hmm, does this require SCCM 2012 R2? I've installed it but all references are to R2 so I don't think it's right.

 

Cheers.

Keeop

Share this post


Link to post
Share on other sites

oops yeah

 

 

System Center 2012 R2 Configuration Manager is required for zero-touch installation (ZTI) scenarios.

 

i'll upgrade my lab tonite and verify it for you, then i'll let you know,

Share this post


Link to post
Share on other sites

I put it on, went through the steps of recreating all the MDT packages but the create TS bombed straight away having issues finding the boot images. So, I removed it and put 2012 UP1 back on. Just having a tinker with your original TS now to see if I can fudge it.

 

Cheers.

Keeop.

Share this post


Link to post
Share on other sites

task sequence is available in the client on system center GUI mode .but in pxe boot is not available .

 

 

i can see other task sequence in the list while pxe boot except cm12bitlocker frontend hta. pls advice

Share this post


Link to post
Share on other sites

do you have any step by step document or any clear video link about configuring task sequences,deploy then pxe boot (backup + OS install) in cm12bitlocker frontend HTA

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×