Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED SCCM - Error on Install certificate and copy folder to user directory with Task sequence

  • Thread starter Thread starter leo815
  • Start date Start date
  • Replies Replies 4
  • Views Views 1K
Status
Not open for further replies.

leo815

Member
Messages
20
Solutions
2
Reaction score
1
Points
3
Hi all,

I have this issue where a simple certificate install and copy folders to user directory is failing with SCCM task sequence.
Error logs and screenshots below.
Any assistance would be appreciated. Thanks


1698621909963.png
1698621963363.png

1698621995701.png
 

Attachments

  • 1698621868409.png
    1698621868409.png
    38.6 KB · Views: 1
<![LOG[TSManager initialized environment for task sequence: deployment ID = 'AAP2008D', package ID = 'AAP00332', Name = 'CAXTools']LOG]!><time="11:00:22.082-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="tsmanager.cpp:1754">
<![LOG[Parsing task sequence . . .]LOG]!><time="11:00:22.083-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="tsmanager.cpp:1955">
<![LOG[Task sequence schema version is 3.10]LOG]!><time="11:00:22.083-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="tsmanager.cpp:1874">
<![LOG[Current supported schema version is 3.10 and 3.00]LOG]!><time="11:00:22.083-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="tsmanager.cpp:1882">
<![LOG[Starting Task Sequence Engine . . . ]LOG]!><time="11:00:22.084-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="tsmanager.cpp:1307">
<![LOG[****************************************************************************]LOG]!><time="11:00:22.084-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="tsmanager.cpp:1310">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=0]LOG]!><time="11:00:22.084-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _TSCurrentNoOpCount=0]LOG]!><time="11:00:22.203-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSInstructionTableSize=2]LOG]!><time="11:00:22.203-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _TSEnabledActionCount=2]LOG]!><time="11:00:22.203-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable SMSTSRebootRequested=]LOG]!><time="11:00:22.204-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable SMSTSRebootMessage=]LOG]!><time="11:00:22.204-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable SMSTSRebootReason=]LOG]!><time="11:00:22.204-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable SMSTSRetryRequested=]LOG]!><time="11:00:22.204-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[The task execution engine started execution]LOG]!><time="11:00:22.316-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="engine.cxx:832">
<![LOG[Not in SSL.]LOG]!><time="11:00:23.675-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="libsmsmessaging.cpp:10100">
<![LOG[Has more instructions.]LOG]!><time="11:00:23.723-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="engine.cxx:874">
<![LOG[Start executing an instruction. Instruction name: 'Copying CATIA V5 folder to the user directory'. Pointer: 0. Type: 'SMS_TaskSequence_RunPowerShellScriptAction'. Disabled: 0]LOG]!><time="11:00:23.723-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="engine.cxx:914">
<![LOG[Set a global environment variable _SMSTSPreviousActionType=]LOG]!><time="11:00:23.723-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSCurrentActionName=Copying CATIA V5 folder to the user directory]LOG]!><time="11:00:23.723-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSCurrentActionType=SMS_TaskSequence_RunPowerShellScriptAction]LOG]!><time="11:00:23.723-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=0]LOG]!><time="11:00:23.724-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Set a local default variable OSDRunPowerShellScriptExecutionPolicy]LOG]!><time="11:00:24.353-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:666">
<![LOG[Set a local default variable OSDRunPowerShellScriptOutputVariableName]LOG]!><time="11:00:24.354-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:666">
<![LOG[Set a local default variable OSDRunPowerShellScriptParameters]LOG]!><time="11:00:24.354-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:666">
<![LOG[Set a local default variable _SMSTSRunPowerShellAsUser]LOG]!><time="11:00:24.354-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:666">
<![LOG[Set a local default variable OSDRunPowerShellScriptSourceScript]LOG]!><time="11:00:24.354-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:666">
<![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog]LOG]!><time="11:00:24.354-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:636">
<![LOG[Expand a string: OSDRunPowerShellScript.exe]LOG]!><time="11:00:24.355-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:768">
<![LOG[Expand a string: ]LOG]!><time="11:00:24.355-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:768">
<![LOG[Start executing the command line: OSDRunPowerShellScript.exe]LOG]!><time="11:00:24.358-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="instruction.cxx:727">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:00:24.358-600" date="10-18-2023" component="TSManager" context="" type="1" thread="14744" file="instruction.cxx:759">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="11:00:24.358-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="executionenv.cxx:768">
<![LOG[Executing command line: OSDRunPowerShellScript.exe with options (0, 4)]LOG]!><time="11:00:24.358-600" date="10-18-2023" component="TSManager" context="" type="0" thread="14744" file="CommandLine.cpp:847">
<![LOG[ ============================== [ OSDRunPSScript.exe ] ============================== ]LOG]!><time="11:00:24.988-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:852">
<![LOG[Running module version 5.0.9106.1000 from location 'C:\Windows\CCM\OSDRunPowerShellScript.exe']LOG]!><time="11:00:25.073-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:856">
<![LOG[PowerShell Package ID is not specified]LOG]!><time="11:00:25.080-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:881">
<![LOG[PowerShell script name is not specified]LOG]!><time="11:00:25.080-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:891">
<![LOG[PowerShell script file created successfully]LOG]!><time="11:00:25.114-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:239">
<![LOG[Running PowerShell script generated in temporary folder 'C:\Windows\TEMP\SMSTSPowerShellScripts' with execution policy: 'AllSigned']LOG]!><time="11:00:25.115-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:955">
<![LOG[Will run PowerShell script under SYSTEM account]LOG]!><time="11:00:25.115-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:703">
<![LOG[PowerShell path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe]LOG]!><time="11:00:25.115-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:715">
<![LOG[Working dir 'not set']LOG]!><time="11:00:25.115-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:731">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="11:00:25.124-600" date="10-18-2023" component="RunPowerShellScript" context="" type="0" thread="8996" file="CommandLine.cpp:229">
<![LOG[Set command line: Run PowerShell Script]LOG]!><time="11:00:25.168-600" date="10-18-2023" component="RunPowerShellScript" context="" type="0" thread="8996" file="CommandLine.cpp:747">
<![LOG[PowerShell command line is NOT shown ('OSDLogPowerShellParameters' is NOT set to 'True')]LOG]!><time="11:00:25.168-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:763">
<![LOG[Executing command line: Run PowerShell Script with options (0, 4)]LOG]!><time="11:00:25.168-600" date="10-18-2023" component="RunPowerShellScript" context="" type="0" thread="8996" file="CommandLine.cpp:847">
<![LOG[]LOG]!><time="11:00:28.304-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:70">
<![LOG[]LOG]!><time="11:00:28.304-600" date="10-18-2023" component="RunPowerShellScript" context="" type="1" thread="8996" file="main.cpp:70">
 
TS run a local System Account, As such will likely fail when connecting to a UNC. Have you tested each command with the local system account?
 
If task sequence is calling a package /bat file that's configured to run as an admin, would it still fail ?

What are the other options to install cert and copy these files to user profile ?
 
If task sequence is calling a package /bat file that's configured to run as an admin, would it still fail ?

What are the other options to install cert and copy these files to user profile ?
What exactly do you mean by running at as Admin? again, why wouldn't you included the source files with the package instead of calling a UNC?
 
Status
Not open for further replies.
Back
Top