Solved

OS Deployment failed - SCCM 2012 SP2

Posted on 2014-11-11
6
463 Views
Last Modified: 2014-11-17
Hi!

Today OS Deployment fails.
I got this error "Task sequence Error <name of task sequence> 0x800700a1".

The error comes straight after choosing the task sequence.

I sure would have appreciated any help solving this problem.

Best regards,
Kenneth
0
Comment
Question by:Kenneth Skogstrand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Mike T
ID: 40437135
Hi,

0X800700A1 means ERROR_BAD_PATHNAME: The specified path is invalid.
(see here http://technet.microsoft.com/en-us/library/bb632794.aspx)

So it depends on the command line in the task-sequence.

Mike
0
 
LVL 5

Expert Comment

by:Mai Ali (MVP)
ID: 40439706
Check smsts.log
Also you can refer below link for this issue
http://elgwhoppo.com/2012/07/02/today-in-my-scc/
0
 

Author Comment

by:Kenneth Skogstrand
ID: 40439965
I found out that the machines who gets this error has Checkpoint.
While in Win PE, the step in the actual task sequence that fails, runs a .cmd file, which tries to start a script. The script tries to copy some files from the DP, on to the %systemdrive%/<folder> on the machine - but fails.

%systemdrive%, in this case, is X: (X: is sccm drive in Win PE)

This happens only on computers that have Checkpoint (encrypted disk). Not on computers that has Bitlocker enabled, though.

If I open a CMD-prompt from Win PE, I can run diskpart, "Select disk 0" (disk 0 is C:\) and run a "Clean" command. After doing this I have noe problem running the task sequence.

Any ideas how to mange to get a task sequence to run diskpart, and then run "select disk 0" and "Clean"?
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 18

Accepted Solution

by:
Mike T earned 500 total points
ID: 40440491
Hi,

Yes, I've had the joy of using Checkpoint before. You need to add a "pre-flight" script to your TS which runs diskpart clean as you've already discovered.

The trick is to use the "mediahook" in SCCM (creates tsconfig.ini in the root) where you modify the boot.wim.


To do either, do the following:

In your BOOT.wim, you need the following INI files:

1)      .\tsconfig.ini                              You create this file in the ROOT of the bootable media (ISO image or UFD)
2)      deploy\scripts\SCCM_Bootstrap.ini            Leave alone as MS default
3)      sms\bin\i386\TSBOOTSHELL.INI


If TSConfig.ini does not exist, just create a new file save it as TSconfig.INI (you must name the file this, or it will not work). It will be there if you used
SCCM and ticked the "Create Media Hook" in the WinPE or went back and ticked it.

Example tsconfig.ini

1) .\tsconfig.ini
[CustomHook]
CommandLine=�WScript.exe X:\MyScript.vbs
OR

CommandLine=�X:\windows\system32\cmd.exe


[CustomHook]
Commandline="x:\PreTS.vbs"

      where PreTS.vbs enables an encrypted disk)

Option Explicit
On Error Resume Next

Dim oShell, oFso
Set oShell = CreateObject("WScript.Shell")
Set oFso = CreateObject("Scripting.FileSystemObject")


    'If there is no C-drive due to SafeGuarde encryption create one
    If NOT oFso.folderExists("C:\") Then
        oShell.Run "diskpart.exe /s x:\diskpart.txt",,true
    End If

I can't find my diskpart.txt file but it's basically a simple

select disk 0
clean
exit


Mike
0
 

Author Closing Comment

by:Kenneth Skogstrand
ID: 40446680
Thanks for the great solution to my problem.
0
 
LVL 18

Expert Comment

by:Mike T
ID: 40446891
You're welcome. Glad I could help.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question