goffries Posted October 14, 2013 Report post Posted October 14, 2013 I manage a SCVMM 2012 sp1 environment and I would like to use SCCM 2012 r2 to manage, update and publish new VHD's. However I am having trouble creating a sysprep'd VHD. The task sequence seems to complete without issue up to the shutdown command which is the last step in the sequence. I have pasted what I believe the issue is below. Failed to execute command line 'shutdown -s -t 300' .The system cannot find the file specified. (Error: 80070002; Source: Windows) InstallSoftware 10/11/2013 2:41:23 PM 1036 (0x040C) It seems to be unable to find the shutdown.exe, Is there something obvious that I'm missing here? Any idea on how to fix it? Any assistance would be great. Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted October 14, 2013 Report post Posted October 14, 2013 Have you tried: C:\Windows\system32\shutdown.exe -s -t 300 as the commandline...or if shutdown.exe is located in the syswow folder on 64 bit machines change the path to suit. Quote Share this post Link to post Share on other sites More sharing options...
goffries Posted October 14, 2013 Report post Posted October 14, 2013 I have tried that, and it doesn't actually shutoff. The VM seems to shut off but then comes right back on a second later. Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted October 15, 2013 Report post Posted October 15, 2013 First of, I would use a task sequence step to perform that action. Reason for that is simple, as your task sequence will never complete successfully. In SP1 there is a new variable introduced, name SMSTSPostAction, use that instead. For the usage of that variable see: http://www.petervanderwoude.nl/post/how-to-perform-an-action-directly-after-the-task-sequence-is-finished-with-configmgr-2012/ Back to your issue, a shutdown, is a shutdown. There is nothing in ConfigMgr that would change a shutdown in something else... I do have seen virtual environments where they automaticaly (and directly) started virtual machines after they where shutdown... Quote Share this post Link to post Share on other sites More sharing options...
goffries Posted October 16, 2013 Report post Posted October 16, 2013 I added the SMSTSPostAction, and the issue unfortunately persists. Do you know of anything external that might be flipping the VM back on? Here is a screen shot of my task sequence incase I missed something very obvious. http://i.imgur.com/18LsdfB.png Quote Share this post Link to post Share on other sites More sharing options...