Jump to content




Sign in to follow this  
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


×