github.com/kikitux/packer@v0.10.1-0.20160322154024-6237df566f9f/website/source/docs/provisioners/windows-restart.html.md (about) 1 --- 2 description: | 3 The Windows restart provisioner restarts a Windows machine and waits for it to 4 come back up. 5 layout: docs 6 page_title: Windows Restart Provisioner 7 ... 8 9 # Windows Restart Provisioner 10 11 Type: `windows-restart` 12 13 The Windows restart provisioner initiates a reboot on a Windows machine and 14 waits for the machine to come back online. 15 16 The Windows provisioning process often requires multiple reboots, and this 17 provisioner helps to ease that process. 18 19 ## Basic Example 20 21 The example below is fully functional. 22 23 ``` {.javascript} 24 { 25 "type": "windows-restart" 26 } 27 ``` 28 29 ## Configuration Reference 30 31 The reference of available configuration options is listed below. 32 33 Optional parameters: 34 35 - `restart_command` (string) - The command to execute to initiate the restart. 36 By default this is `shutdown /r /c "packer restart" /t 5 && net stop winrm`. 37 A key action of this is to stop WinRM so that Packer can detect it 38 is rebooting. 39 40 - `restart_check_command` (string) - A command to execute to check if the 41 restart succeeded. This will be done in a loop. 42 43 - `restart_timeout` (string) - The timeout to wait for the restart. By default 44 this is 5 minutes. Example value: "5m"