Using the same boot wim, TS fails using PXE but succeeds when using bootable usb

We have a new model that will not successfully complete a task sequence using PXE.  However, if we use freshly created (same boot image) usb bootable media, the task sequence is successful. Our other models are not having this issue and will complete successfully with PXE using the same task sequence.  The error happens the first time the task sequence tries to download content to the local disk.  However, the smsts.log is successfully written to disk.  Also, manually opening diskpart, we can see that the formatting is correct and we are able to create a file/folder on the driver.  The behavior is the same with two different distribution points.

SMSTS log

==============================[ OSDDiskPart.exe ]============================== OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Command line: "osddiskpart.exe" OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL' OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Reading partition size info for partition 0 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Remaining size before partition: 500105249280 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
size units: SIZE_MB OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Set partition size: 367001600 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Remaining size after partition 0: 499738247680 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Set an environment variable for partitions 0-1 without drive letter OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Reading partition size info for partition 1 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Remaining size before partition: 499738247680 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
size units: SIZE_PERCENT OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
100% size specified. OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Remaining size after partition 1: 0 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Set an environment variable for partitions 0-2 with drive letter OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Checking volume 'X:' for BitLocker OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Using S: for EFI partition. OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Diskpart: select disk 0
clean
create partition PRIMARY size=350
assign letter=S
format quick fs=ntfs label="BootDrive"
active
create partition PRIMARY
assign
rescan
 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Executing diskpart script: select disk 0
clean
create partition PRIMARY size=350
assign letter=S
format quick fs=ntfs label="BootDrive"
active
create partition PRIMARY
assign
rescan
 OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Command line for extension .exe is "%1" %* OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Set command line: "X:\WINDOWS\system32\diskpart.exe" /s "X:\WINDOWS\TEMP\DiskPartScript.txt" OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Executing command line: "X:\WINDOWS\system32\diskpart.exe" /s "X:\WINDOWS\TEMP\DiskPartScript.txt" OSDDiskPart 7/30/2015 9:50:56 AM 720 (0x02D0)
Process completed with exit code 0 OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Formatting partitions OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Partition: 1 PRIMARY OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Partition: 2 PRIMARY OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Adding logical drive: C: OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Adding logical drive: S: OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Skipping non-local logical drive: X: OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Formatting drive C: with NTFS filesystem, method quick OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Creating instance of service loader OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Loading service OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Waiting for service to initialize OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for software providers OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS software provider OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsSwProvider OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for packs OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS pack OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsPack OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for volumes OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS software provider OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsSwProvider OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for packs OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS pack OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsPack OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for volumes OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS volume OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsVolumeMF OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for access paths OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a VDS volume OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsVolumeMF OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for access paths OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Found a volume with access path 'C:\' OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsVolume OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
Querying for IVdsVolumeMF OSDDiskPart 7/30/2015 9:50:59 AM 720 (0x02D0)
OSDDiskPart.exe completed successfully OSDDiskPart 7/30/2015 9:51:03 AM 720 (0x02D0)
Process completed with exit code 0 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
!--------------------------------------------------------------------------------------------! TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Successfully completed the action (Partition Disk 0) with the exit win32 code 0 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)

MP server http://[correct MP name]. Ports 80,443. CRL=false. TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Setting authenticator TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set authenticator in transport TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Sending StatusMessage TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Setting message signatures. TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Setting the authenticator. TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
CLibSMSMessageWinHttpTransport::Send: URL: cewp1080.wfm.pvt:80  CCM_POST /ccm_system/request TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Request was successful. TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSLastActionRetCode=0 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSLastActionSucceeded=true TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Expand a string: %_SMSTSMDataPath%\Logs TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Clear local default environment TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
User did not specify local data drive TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume C:\ has 499582218240 bytes of free space TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume C:\ is not bootable TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume S:\ has 336084992 bytes of free space TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume S:\ is not bootable TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume X:\ is not a fixed hard drive TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
TSM root drive =  TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
We do not find an available volume to store the local data path TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSNextInstructionPointer=8 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a TS execution environment variable _SMSTSNextInstructionPointer=8 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSInstructionStackString=4 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a TS execution environment variable _SMSTSInstructionStackString=4 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Save the current environment block TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
pszPath[0] != L'\0', HRESULT=80070057 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,60) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Filesystem::Path::Add(sEnvPath, EnvDataFileName, sEnvPath), HRESULT=80070057 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,676) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Failed to save environment to  (80070057) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\executionengine\executionenv.cxx,842) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
The parameter is incorrect. (Error: 80070057; Source: Windows) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
SaveEnvironment(), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\executionengine\executionenv.cxx,420) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Failed to persist execution state. Error 0x(80070057) TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Failed to save execution state and environment to local hard disk TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Start executing an instruction. Instruction name: Create Machine Name. Instruction pointer: 8 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSCurrentActionName=Create Machine Name TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a global environment variable _SMSTSNextInstructionPointer=8 TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Set a local default variable SMSTSDisableWow64Redirection TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Set a local default variable _SMSTSRunCommandLineAsUser TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Expand a string: smsswd.exe /run:PR10001C gethostname.exe Prod REG TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Expand a string:  TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Command line for extension .exe is "%1" %* TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Set command line: smsswd.exe /run:PR10001C gethostname.exe Prod REG TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Start executing the command line: smsswd.exe /run:PR10001C gethostname.exe Prod REG TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
!--------------------------------------------------------------------------------------------! TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Expand a string: WinPEandFullOS TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Executing command line: smsswd.exe /run:PR10001C gethostname.exe Prod REG TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
[ smsswd.exe ] InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
PackageID = 'PR10001C' InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
BaseVar = '', ContinueOnError='' InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
ProgramName = 'gethostname.exe Prod REG' InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
SwdAction = '0001' InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
ResolveSource flags: 0x00000000 InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
SMSTSPersistContent: . The content for package PR10001C will be persisted InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
DownloadOnDemand flag is true. Attempting to download content locally for Package PR10001C. InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
nPos != String::npos, HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,101) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
RecursiveCreatePath(sPath.substr(0, nPos), psa), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,104) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
RecursiveCreatePath(sPath.substr(0, nPos), psa), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,104) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
RecursiveCreatePath( sNormalizedPath, psa ), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,159) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
DownloadContentLocally (pszSource, sSourceDirectory, dwFlags, hUserToken, mapNetworkAccess), HRESULT=800700a1 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,3273) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
TS::Utility::ResolveSource (pszPkgID, sPath, 0, hUserToken, mapNetworkAccess), HRESULT=800700a1 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\runcommandline.cpp,399) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
Failed to resolve the source for SMS PKGID=PR10001C, hr=0x800700a1 InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=800700a1 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,372) InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
Install Software failed to run command line, hr=0x800700a1 InstallSoftware 7/30/2015 9:51:04 AM 1096 (0x0448)
Process completed with exit code 2147942561 TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
!--------------------------------------------------------------------------------------------! TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)
Failed to run the action: Create Machine Name.
The specified path is invalid. (Error: 800700A1; Source: Windows) TSManager 7/30/2015 9:51:04 AM 2016 (0x07E0)

It sure seems like a storage driver issue but we can use diskpart and write to the disk without error.  And it all works without errors when using the same boot wim with the usb media.

July 31st, 2015 11:14am

Have you tried using diskpart to do a Clean, then manually create the partition, format, etc. Then run the TS.

Give that a shot and see. . .I've run into that when imaging virtual machines (never a physical PC though).

Jeff

Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 11:50am

It looks like the _SMSTaskSequence (%_SMSTSMDataPath%) folder can't be created, can you verify the folder is created on one of the partitions? It will normally get created on the partition with the largest amount of free space.

Expand a string: %_SMSTSMDataPath%\Logs TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)

Clear local default environment TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
User did not specify local data drive TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume C:\ has 499582218240 bytes of free space TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume C:\ is not bootable TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume S:\ has 336084992 bytes of free space TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume S:\ is not bootable TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
Volume X:\ is not a fixed hard drive TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
TSM root drive =  TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)
We do not find an available volume to store the local data path TSManager 7/30/2015 9:51:03 AM 2016 (0x07E0)

July 31st, 2015 12:30pm

We have used diskpart to do a clean and manually create partitions and format.  We still got the exact same error

Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 3:13pm

You are correct that the _SMSTaskSequence folder does not get created on the drive. In our case, this is drive c:, however, it does create the folder SMSTSLog and successfully writes smsts.log there
July 31st, 2015 6:37pm

Hi,

Any update?

Free Windows Admin Tool Kit Click here and download it now
August 7th, 2015 2:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics