Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 492 Bytes

README-shutdown_command.md

File metadata and controls

15 lines (11 loc) · 492 Bytes

Packer shutdown_command

There is an alternative for the normal Windows shutdown command. Normally we use something like this to shutdown the VM in packer.

   "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",

Replace it with

   "shutdown_command": "c:/windows/system32/sysprep/sysprep.exe /generalize /oobe /quiet /shutdown /unattend:a:/unattend.xml",

and on the first vagrant up the box will boot with an out-of-box-experience (OOBE)