Solved

OS Deployment failed - SCCM 2012 SP2

Posted on 2014-11-11
6
417 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
  • 3
  • 2
6 Comments
 
LVL 17

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 17

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 17

Expert Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RDP Error - An Internal Error Has Occurred 7 24
Move windows 10 users 8 70
USB 2 Driver 7 33
Restore get-aduser functionality 8 8
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.
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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.

809 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