Jump to content


LiamMc18

Run Command not working in Task Sequence for OSD

Recommended Posts

Hi all,

Please be patient with me - I'm quite new to SCCM.

I have recently created an image the old fashioned way (in terms of loading it with apps etc) of Windows 10 Enterprise 2016 LTSB and used SCCM to sysprep/capture the image. I then built a task sequence to deploy via PXE boot.

The image applies successfully to the PCs we have been imaging and the post imaging tasks (joining to the domain etc.) also complete without error.

MS Office 2016 Pro Plus x86 is part of the image. I am trying to run the following command at the end of the task sequence I have created to input a MAK product key and activate Office:

Quote

cmd /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX && cmd.exe /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /act

This does not complete and does not appear to throw up any error which relates to why it is not applying.

Extract from the smsts.log file on the client after it's completed the task sequence:

Quote

No condition is associated with the step.    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Disable:     TSManager    06/06/2018 13:03:42    1112 (0x0458)
Run in attribute: WinPEandFullOS    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Timeout: 120    TSManager    06/06/2018 13:03:42    1112 (0x0458)
DefaultVarlist found    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Variable name: SMSTSDisableWow64Redirection    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Variable name: _SMSTSRunCommandLineAsUser    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Variable name: SMSTSRunCommandLineUserPassword    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Variable name: WorkingDirectory    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Action command line: smsswd.exe /run: cmd.exe /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX && cmd.exe /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /act    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Adding instruction at 10    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Parsing step node: Office Package    TSManager    06/06/2018 13:03:42    1112 (0x0458)
Description:     TSManager    06/06/2018 13:03:42    1112 (0x0458)
ContinueOnError: true    TSManager    06/06/2018 13:03:42    1112 (0x0458)
SuccessCodeList: 0    TSManager    06/06/2018 13:03:42    1112 (0x0458)
(__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002 (E:\qfe\nts\sms\common\inc\ccmxml.h,582)    TSManager    06/06/2018 13:03:42    1112 (0x0458)
No condition is associated with the step.    TSManager    06/06/2018 13:03:42    1112 (0x0458)

If I copy and paste the run command into command prompt with admin privileges post deployment it completes successfully. 

Attached is the image of the task sequence.

What I have tried:

  • Separating the commands to two separate run commands. One for inserting the product key and one for activating
  • Disable 64-bit file system redirection
  • Run with domain admin account

Please can someone help? :)

Capture.JPG

Edited by LiamMc18

Share this post


Link to post
Share on other sites

Quote

Parsing step node: Office Package    TSManager    06/06/2018 13:03:42    1112 (0x0458)

"parsing" you are looking at the part of the smsts.log where it parses through the commands it has to execute, to see how your step performs, search for "start executing" instead and see what errors if any are present for the actual step, and not the 'parsed' step

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.