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 not executing CMD for a installer

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

leo815

Member
Messages
20
Solutions
2
Reaction score
1
Points
3
Hi,
I have the following command not getting executed via task sequence:

C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES

The files are copied to C:\Tools in an earlier step in the task sequence. The command above has been confirmed by the vendor for this software installation and works fine when I manually run it on the endpoint. Below is the screenshot of the Installing Solvers 2022.3 sequence that's failing.

It has been tried to be executed with admin account as well but still failing.

Attaching the logs as well so any assistance would be appreciated. Thanks

1698620846701.png



<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="08:50:52.128-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:768">
<![LOG[Executing command line: smsswd.exe /run: C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES with options (0, 4)]LOG]!><time="08:50:52.129-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="CommandLine.cpp:847">
<![LOG[ ================================ [ smsswd.exe ] ================================ ]LOG]!><time="08:50:52.259-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:290">
<![LOG[Running module version 5.0.9106.1000 from location 'C:\Windows\CCM\smsswd.exe']LOG]!><time="08:50:52.271-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:294">
<![LOG[PackageID = '']LOG]!><time="08:50:52.274-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:323">
<![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="08:50:52.274-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:324">
<![LOG[ProgramName is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="2" thread="11064" file="main.cpp:333">
<![LOG[ProgramName = 'C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES']LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:334">
<![LOG[SwdAction = '0001']LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:337">
<![LOG[Getting linked token]LOG]!><time="08:50:52.382-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:236">
<![LOG[Will run Command Line under USER account 'AU\E302527ADM']LOG]!><time="08:50:52.403-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:287">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:229">
<![LOG[Set command line: Run command line]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:747">
<![LOG[Working dir 'not set']LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:452">
<![LOG[Executing command line: Run command line with options (0, 4)]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:847">
<![LOG[Create a process under given user token]LOG]!><time="08:50:52.423-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="CommandLine.cpp:1060">
<![LOG[Process completed with exit code 1001]LOG]!><time="08:55:25.039-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:1161">
<![LOG[Command line is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!><time="08:55:25.040-600" date="10-30-2023" component="InstallSoftware" context="" type="2" thread="11064" file="runcommandline.cpp:478">
<![LOG[Command line C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES returned 1001]LOG]!><time="08:55:25.040-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:479">
<![LOG[Process completed with exit code 1001]LOG]!><time="08:55:25.058-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="CommandLine.cpp:1161">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="08:55:25.059-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="instruction.cxx:809">
<![LOG[Failed to run the action: Installing Solvers 2022.3. Error 1001]LOG]!><time="08:55:25.059-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="instruction.cxx:915">
<![LOG[Not in SSL.]LOG]!><time="08:55:25.633-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=1001]LOG]!><time="08:55:25.739-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSLastActionName=Installing Solvers 2022.3]LOG]!><time="08:55:25.739-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="08:55:25.740-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Clear local default environment]LOG]!><time="08:55:25.740-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:794">
<![LOG[Failed to run the action: Installing Solvers 2022.3. Execution has been aborted]LOG]!><time="08:55:25.743-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="instruction.cxx:1001">
<![LOG[Not in SSL.]LOG]!><time="08:55:25.822-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Failed to run the last action: Installing Solvers 2022.3. Result 1001. Execution of task sequence failed.]LOG]!><time="08:55:25.883-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="engine.cxx:1046">
<![LOG[Not in SSL.]LOG]!><time="08:55:26.073-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Showing task sequence error message after failure in task sequence step of type 'SMS_TaskSequence_RunCommandLineAction']LOG]!><time="08:55:26.467-600" date="10-30-2023" component="TSManager" context="" type="2" thread="8912" file="clientui.cpp:538">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="08:57:35.525-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="tsmanager.cpp:1317">
<![LOG[****************************************************************************]LOG]!><time="08:57:35.536-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="tsmanager.cpp:1353">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="08:57:35.539-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="tsmanager.cpp:1354">
<![LOG[Cleaning Up.]LOG]!><time="08:57:35.540-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="tsmanager.cpp:830">
 

Attachments

  • 1698620800661.png
    1698620800661.png
    32.6 KB · Views: 14
Last edited:
Hi,
I have the following command not getting executed via task sequence:

C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES

The files are copied to C:\Tools in an earlier step in the task sequence. The command above has been confirmed by the vendor for this software installation and works fine when I manually run it on the endpoint. Below is the screenshot of the Installing Solvers 2022.3 sequence that's failing.

It has been tried to be executed with admin account as well but still failing.

Attaching the logs as well so any assistance would be appreciated. Thanks

View attachment 5684
View attachment 5686


<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="08:50:52.128-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:768">
<![LOG[Executing command line: smsswd.exe /run: C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES with options (0, 4)]LOG]!><time="08:50:52.129-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="CommandLine.cpp:847">
<![LOG[ ================================ [ smsswd.exe ] ================================ ]LOG]!><time="08:50:52.259-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:290">
<![LOG[Running module version 5.0.9106.1000 from location 'C:\Windows\CCM\smsswd.exe']LOG]!><time="08:50:52.271-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:294">
<![LOG[PackageID = '']LOG]!><time="08:50:52.274-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:323">
<![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="08:50:52.274-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:324">
<![LOG[ProgramName is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="2" thread="11064" file="main.cpp:333">
<![LOG[ProgramName = 'C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES']LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:334">
<![LOG[SwdAction = '0001']LOG]!><time="08:50:52.275-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="main.cpp:337">
<![LOG[Getting linked token]LOG]!><time="08:50:52.382-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:236">
<![LOG[Will run Command Line under USER account 'AU\E302527ADM']LOG]!><time="08:50:52.403-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:287">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:229">
<![LOG[Set command line: Run command line]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:747">
<![LOG[Working dir 'not set']LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:452">
<![LOG[Executing command line: Run command line with options (0, 4)]LOG]!><time="08:50:52.422-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:847">
<![LOG[Create a process under given user token]LOG]!><time="08:50:52.423-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="CommandLine.cpp:1060">
<![LOG[Process completed with exit code 1001]LOG]!><time="08:55:25.039-600" date="10-30-2023" component="InstallSoftware" context="" type="0" thread="11064" file="CommandLine.cpp:1161">
<![LOG[Command line is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!><time="08:55:25.040-600" date="10-30-2023" component="InstallSoftware" context="" type="2" thread="11064" file="runcommandline.cpp:478">
<![LOG[Command line C:\Tools\Solvers\hwSolvers2022.3_win64.exe –i silent –f "C:\Tools\Solvers\hw2022.3_installer.properties” -DACCEPT_EULA=YES returned 1001]LOG]!><time="08:55:25.040-600" date="10-30-2023" component="InstallSoftware" context="" type="1" thread="11064" file="runcommandline.cpp:479">
<![LOG[Process completed with exit code 1001]LOG]!><time="08:55:25.058-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="CommandLine.cpp:1161">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="08:55:25.059-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="instruction.cxx:809">
<![LOG[Failed to run the action: Installing Solvers 2022.3. Error 1001]LOG]!><time="08:55:25.059-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="instruction.cxx:915">
<![LOG[Not in SSL.]LOG]!><time="08:55:25.633-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=1001]LOG]!><time="08:55:25.739-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSLastActionName=Installing Solvers 2022.3]LOG]!><time="08:55:25.739-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="08:55:25.740-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:636">
<![LOG[Clear local default environment]LOG]!><time="08:55:25.740-600" date="10-30-2023" component="TSManager" context="" type="0" thread="8912" file="executionenv.cxx:794">
<![LOG[Failed to run the action: Installing Solvers 2022.3. Execution has been aborted]LOG]!><time="08:55:25.743-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="instruction.cxx:1001">
<![LOG[Not in SSL.]LOG]!><time="08:55:25.822-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Failed to run the last action: Installing Solvers 2022.3. Result 1001. Execution of task sequence failed.]LOG]!><time="08:55:25.883-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="engine.cxx:1046">
<![LOG[Not in SSL.]LOG]!><time="08:55:26.073-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="libsmsmessaging.cpp:10100">
<![LOG[Showing task sequence error message after failure in task sequence step of type 'SMS_TaskSequence_RunCommandLineAction']LOG]!><time="08:55:26.467-600" date="10-30-2023" component="TSManager" context="" type="2" thread="8912" file="clientui.cpp:538">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="08:57:35.525-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="tsmanager.cpp:1317">
<![LOG[****************************************************************************]LOG]!><time="08:57:35.536-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="tsmanager.cpp:1353">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="08:57:35.539-600" date="10-30-2023" component="TSManager" context="" type="3" thread="8912" file="tsmanager.cpp:1354">
<![LOG[Cleaning Up.]LOG]!><time="08:57:35.540-600" date="10-30-2023" component="TSManager" context="" type="1" thread="8912" file="tsmanager.cpp:830">
why dont you use a package or application instead of a tasksequence. everything will be run from ccmcache with no need to copy the files to c:\scratch folder
 
C:\Scratch folder is actually needed to be created as part of the application, it uses the folder as a temp folder to write temp files.

The silent installer as per vendor's manual says that the following command needs to be deployed for a successful install, I have tested the command and it works fine when run manually on the endpoint with the admin rights.

The service account SCCM is using is part of the workstationadmin group so it should have all the admin right.s

1698801253659.png
I have created a package for this installer and using bat file with the following command to run:

hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

However, it fails and the smslogs show that it has added server DQDN path before the exe file.

\\SERVER\applications\Altair\Solvers2022.3\hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

With this added FQDN path before the exe, it must be causing the issue from what I understand.

Is there any other way to deploy this so that it just runs the command as per the install guide ? Thanks
 
C:\Scratch folder is actually needed to be created as part of the application, it uses the folder as a temp folder to write temp files.

The silent installer as per vendor's manual says that the following command needs to be deployed for a successful install, I have tested the command and it works fine when run manually on the endpoint with the admin rights.

The service account SCCM is using is part of the workstationadmin group so it should have all the admin right.s

View attachment 5693
I have created a package for this installer and using bat file with the following command to run:

hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

However, it fails and the smslogs show that it has added server DQDN path before the exe file.

\\SERVER\applications\Altair\Solvers2022.3\hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

With this added FQDN path before the exe, it must be causing the issue from what I understand.

Is there any other way to deploy this so that it just runs the command as per the install guide ? Thanks
try the app deployment toolkit.
 
C:\Scratch folder is actually needed to be created as part of the application, it uses the folder as a temp folder to write temp files.

The silent installer as per vendor's manual says that the following command needs to be deployed for a successful install, I have tested the command and it works fine when run manually on the endpoint with the admin rights.

The service account SCCM is using is part of the workstationadmin group so it should have all the admin right.s

View attachment 5693
I have created a package for this installer and using bat file with the following command to run:

hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

However, it fails and the smslogs show that it has added server DQDN path before the exe file.

\\SERVER\applications\Altair\Solvers2022.3\hwSolvers2022.3_win64.exe –i silent –f "\\SERVER\applications\Altair\Solvers2022.3\hw2022.3_installer.properties" -DACCEPT_EULA=YES

With this added FQDN path before the exe, it must be causing the issue from what I understand.

Is there any other way to deploy this so that it just runs the command as per the install guide ? Thanks
It is unclear did you testing the install using the Local System account? It is important to do this step. as the Local system account does not generally have access to UNCs.
 
Status
Not open for further replies.
Back
Top