Skip to content

Create sysprepped VHD with SCCM 2012 R2

Featured Replies

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.

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.

  • Author

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.

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...

  • Author

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

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.