I'm trying to automate the packer builds with Jenkins. In one packer build --only hyperv-iso windows_10.json
I looked into the VM and no win-updates.ps1 script was running. So I started a:\win-updates.ps1
again.
[windows_10] hyperv-iso: 02/01/2018 09:31 AM 10,625 win-updates.log
[windows_10] hyperv-iso: 1 File(s) 10,625 bytes
[windows_10] hyperv-iso: 0 Dir(s) 49,802,006,528 bytes free
[windows_10] hyperv-iso: 2018-02-01T05:55:25 Checking For Windows Updates
[windows_10] hyperv-iso: 2018-02-01T05:55:26 Script: A:\win-updates.ps1
[windows_10] hyperv-iso: Script User: VAGRANT-10\vagrant
[windows_10] hyperv-iso: Started: 2/1/2018 5:55:26 AM
[windows_10] hyperv-iso: 2018-02-01T05:55:55 There are 6 more updates.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 True
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Microsoft Silverlight (KB4023307)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Microsoft Silverlight is a Web browser plug-in for Windows and Mac OS X that delivers high quality video/audio, animation, and richer Website experiences in popular Web browsers.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Update for Windows 10 Version 1709 for x64-based Systems (KB4058043)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 True
[windows_10] hyperv-iso: 2018-02-01T05:55:56 2018-01 Security Update for Adobe Flash Player for Windows 10 Version 1709 for x64-based Systems (KB4056887)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 True
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - January 2018 (KB890830)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 After the download, this tool runs one time to check your computer for infection by specific, prevalent malicious software (including Blaster, Sasser, and Mydoom) and helps remove any infection that is found. If an infection is found, the tool will display a status report the next time that you start your computer. A new version of the tool will be offered every month. If you want to manually run the tool on your computer, you can download a copy from the Microsoft Download Center, or you can run an online version from microsoft.com. This tool is not a replacement for an antivirus product. To help protect your computer, you should use an antivirus product.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 True
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.610.0)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Install this update to revise the definition files that are used to detect viruses, spyware, and other potentially unwanted software. Once you have installed this item, it cannot be removed.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 False
[windows_10] hyperv-iso: 2018-02-01T05:55:56 True
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Evaluating Available Updates with limit of 500:
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 > Note: Microsoft Silverlight (KB4023307) has a license agreement that must be accepted. Accepting the license.
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: Microsoft Silverlight (KB4023307)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: Update for Windows 10 Version 1709 for x64-based Systems (KB4058043)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: 2018-01 Security Update for Adobe Flash Player for Windows 10 Version 1709 for x64-based Systems (KB4056887)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - January 2018 (KB890830)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Adding: Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.610.0)
[windows_10] hyperv-iso: 2018-02-01T05:55:56 Downloading Updates...
[windows_10] hyperv-iso: 2018-02-01T05:59:12 The following updates are downloaded and ready to be installed:
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > Microsoft Silverlight (KB4023307)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > Update for Windows 10 Version 1709 for x64-based Systems (KB4058043)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > 2018-01 Security Update for Adobe Flash Player for Windows 10 Version 1709 for x64-based Systems (KB4056887)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - January 2018 (KB890830)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 > Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.610.0)
[windows_10] hyperv-iso: 2018-02-01T05:59:12 These updates may require a reboot
[windows_10] hyperv-iso: 2018-02-01T05:59:12 Installing updates...
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Installation Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Reboot Required: True
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Listing of updates installed and individual installation results:
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: Microsoft Silverlight (KB4023307)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: Update for Windows 10 Version 1709 for x64-based Systems (KB4058043)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: 2018-01 Security Update for Adobe Flash Player for Windows 10 Version 1709 for x64-based Systems (KB4056887)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - January 2018 (KB890830)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Item: Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.610.0)
[windows_10] hyperv-iso: 2018-02-01T06:09:53 Result: 2
[windows_10] hyperv-iso: 2018-02-01T06:09:55 Restart Registry Entry Does Not Exist - Creating It
[windows_10] hyperv-iso: 2018-02-01T06:09:55 Restart Required - Restarting...
After a while I RDP'ed into my Jenkins build agent and opened the Hyper-V Manager to look into the Windows 10 VM and no win-updates.ps1 script was running. So I started a:\win-updates.ps1
again.
[windows_10] hyperv-iso: 2018-02-01T09:08:55 Checking For Windows Updates
[windows_10] hyperv-iso: 2018-02-01T09:08:55 Script: A:\win-updates.ps1
[windows_10] hyperv-iso: Script User: VAGRANT-10\vagrant
[windows_10] hyperv-iso: Started: 2/1/2018 9:08:55 AM
[windows_10] hyperv-iso: 2018-02-01T09:09:13 There are 2 more updates.
[windows_10] hyperv-iso: 2018-02-01T09:09:13 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T09:09:13 Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
[windows_10] hyperv-iso: 2018-02-01T09:09:13 True
[windows_10] hyperv-iso: 2018-02-01T09:09:14 True
[windows_10] hyperv-iso: 2018-02-01T09:09:14 Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.632.0)
[windows_10] hyperv-iso: 2018-02-01T09:09:14 Install this update to revise the definition files that are used to detect viruses, spyware, and other potentially unwanted software. Once you have installed this item, it cannot be removed.
[windows_10] hyperv-iso: 2018-02-01T09:09:14 False
[windows_10] hyperv-iso: 2018-02-01T09:09:14 True
[windows_10] hyperv-iso: 2018-02-01T09:09:15 Evaluating Available Updates with limit of 500:
[windows_10] hyperv-iso: 2018-02-01T09:09:15 Adding: Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.632.0)
[windows_10] hyperv-iso: 2018-02-01T09:09:15 Downloading Updates...
[windows_10] hyperv-iso: 2018-02-01T09:09:35 The following updates are downloaded and ready to be installed:
[windows_10] hyperv-iso: 2018-02-01T09:09:35 > 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T09:09:35 > Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.632.0)
[windows_10] hyperv-iso: 2018-02-01T09:09:35 These updates may require a reboot
[windows_10] hyperv-iso: 2018-02-01T09:09:35 Installing updates...
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Installation Result: 2
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Reboot Required: True
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Listing of updates installed and individual installation results:
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Item: 2017-12 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4054517)
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Result: 2
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Item: Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.261.632.0)
[windows_10] hyperv-iso: 2018-02-01T09:10:14 Result: 2
[windows_10] hyperv-iso: 2018-02-01T09:10:15 Restart Registry Entry Exists Already
[windows_10] hyperv-iso: 2018-02-01T09:10:15 Restart Required - Restarting...
[windows_10] hyperv-iso: 2018-02-01T09:16:10 Checking For Windows Updates
[windows_10] hyperv-iso: 2018-02-01T09:16:11 Script: A:\win-updates.ps1
[windows_10] hyperv-iso: Script User: VAGRANT-10\vagrant
[windows_10] hyperv-iso: Started: 2/1/2018 9:16:11 AM
[windows_10] hyperv-iso: 2018-02-01T09:16:24 There are 1 more updates.
[windows_10] hyperv-iso: 2018-02-01T09:16:24 2018-01 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4056892)
[windows_10] hyperv-iso: 2018-02-01T09:16:24 Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
[windows_10] hyperv-iso: 2018-02-01T09:16:24 False
[windows_10] hyperv-iso: 2018-02-01T09:16:24 True
[windows_10] hyperv-iso: 2018-02-01T09:16:25 Evaluating Available Updates with limit of 500:
[windows_10] hyperv-iso: 2018-02-01T09:16:25 Adding: 2018-01 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4056892)
[windows_10] hyperv-iso: 2018-02-01T09:16:25 Downloading Updates...
[windows_10] hyperv-iso: 2018-02-01T09:20:07 The following updates are downloaded and ready to be installed:
[windows_10] hyperv-iso: 2018-02-01T09:20:10 > 2018-01 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4056892)
[windows_10] hyperv-iso: 2018-02-01T09:20:10 These updates may require a reboot
[windows_10] hyperv-iso: 2018-02-01T09:20:10 Installing updates...
[windows_10] hyperv-iso: 2018-02-01T09:26:26 Installation Result: 2
[windows_10] hyperv-iso: 2018-02-01T09:26:26 Reboot Required: True
[windows_10] hyperv-iso: 2018-02-01T09:26:26 Listing of updates installed and individual installation results:
[windows_10] hyperv-iso: 2018-02-01T09:26:26 Item: 2018-01 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4056892)
[windows_10] hyperv-iso: 2018-02-01T09:26:26 Result: 2
[windows_10] hyperv-iso: 2018-02-01T09:26:27 Restart Registry Entry Exists Already
[windows_10] hyperv-iso: 2018-02-01T09:26:27 Restart Required - Restarting...
[windows_10] hyperv-iso: 2018-02-01T09:31:29 Checking For Windows Updates
[windows_10] hyperv-iso: 2018-02-01T09:31:30 Script: A:\win-updates.ps1
[windows_10] hyperv-iso: Script User: VAGRANT-10\vagrant
[windows_10] hyperv-iso: Started: 2/1/2018 9:31:30 AM
[windows_10] hyperv-iso: 2018-02-01T09:31:41 There are no applicable updates
[windows_10] hyperv-iso: 2018-02-01T09:31:42 Restart Registry Entry Exists - Removing It
[windows_10] hyperv-iso: 2018-02-01T09:31:42 No Restart Required
[windows_10] hyperv-iso: 2018-02-01T09:31:42 Checking For Windows Updates
[windows_10] hyperv-iso: 2018-02-01T09:31:42 Script: A:\win-updates.ps1
[windows_10] hyperv-iso: Script User: VAGRANT-10\vagrant
[windows_10] hyperv-iso: Started: 2/1/2018 9:31:42 AM
[windows_10] hyperv-iso: 2018-02-01T09:31:47 There are no applicable updates
[windows_10] hyperv-iso: 2018-02-01T09:31:47 Done Installing Windows Updates
[windows_10] hyperv-iso: End of Windows Updates log file C:\Windows\Temp\win-updates.log
I have to check what went wrong in the script and why it didn't start again after the reboot.