From d307cc8d79440f6befc367edb1994a4f8f98a8cf Mon Sep 17 00:00:00 2001 From: Ken Sykora Date: Wed, 14 May 2014 09:57:51 -0500 Subject: [PATCH 1/5] Enables Windows Update to pull updates from both Windows "And other Microsoft products" --- answer_files/2008_r2/Autounattend.xml | 5 +++++ answer_files/2008_r2_core/Autounattend.xml | 5 +++++ answer_files/2012/Autounattend.xml | 5 +++++ answer_files/2012_r2/Autounattend.xml | 5 +++++ answer_files/2012_r2_core/Autounattend.xml | 5 +++++ answer_files/7/Autounattend.xml | 5 +++++ answer_files/81/Autounattend.xml | 5 +++++ scripts/microsoft-updates.bat | 12 ++++++++++++ windows_2008_r2.json | 2 ++ windows_2008_r2_core.json | 2 ++ windows_2012.json | 2 ++ windows_2012_r2.json | 2 ++ windows_2012_r2_core.json | 2 ++ 13 files changed, 57 insertions(+) create mode 100644 scripts/microsoft-updates.bat diff --git a/answer_files/2008_r2/Autounattend.xml b/answer_files/2008_r2/Autounattend.xml index 07a1954d..0eb29777 100644 --- a/answer_files/2008_r2/Autounattend.xml +++ b/answer_files/2008_r2/Autounattend.xml @@ -226,6 +226,11 @@ 21 Disable Hibernation Mode + + cmd.exe /c a:\microsoft-updates.bat + 22 + Enable Microsoft Updates + + + + + + + + + cmd.exe /c a:\microsoft-updates.bat + 98 + Enable Microsoft Updates + cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 Install OpenSSH diff --git a/answer_files/2008_r2_core/Autounattend.xml b/answer_files/2008_r2_core/Autounattend.xml index 96e1f5a2..f77ec70c 100644 --- a/answer_files/2008_r2_core/Autounattend.xml +++ b/answer_files/2008_r2_core/Autounattend.xml @@ -262,14 +262,6 @@ 27 Disable Hibernation Mode - - + + cmd.exe /c a:\microsoft-updates.bat + 98 + Enable Microsoft Updates + cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 Install OpenSSH diff --git a/answer_files/2012/Autounattend.xml b/answer_files/2012/Autounattend.xml index 75afdb85..660b485e 100644 --- a/answer_files/2012/Autounattend.xml +++ b/answer_files/2012/Autounattend.xml @@ -231,14 +231,6 @@ 21 Disable Hibernation Mode - - + + cmd.exe /c a:\microsoft-updates.bat + 98 + Enable Microsoft Updates + cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 Install OpenSSH diff --git a/answer_files/2012_r2/Autounattend.xml b/answer_files/2012_r2/Autounattend.xml index ef99145a..e82a3017 100644 --- a/answer_files/2012_r2/Autounattend.xml +++ b/answer_files/2012_r2/Autounattend.xml @@ -228,14 +228,6 @@ 21 Disable Hibernation Mode - - + + cmd.exe /c a:\microsoft-updates.bat + 98 + Enable Microsoft Updates + cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 Install OpenSSH diff --git a/answer_files/2012_r2_core/Autounattend.xml b/answer_files/2012_r2_core/Autounattend.xml index 8ff07e1d..74924543 100644 --- a/answer_files/2012_r2_core/Autounattend.xml +++ b/answer_files/2012_r2_core/Autounattend.xml @@ -228,14 +228,6 @@ 21 Disable Hibernation Mode - - + + cmd.exe /c a:\microsoft-updates.bat + 98 + Enable Microsoft Updates + cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 Install OpenSSH diff --git a/answer_files/7/Autounattend.xml b/answer_files/7/Autounattend.xml index 8fb874f4..1b179610 100644 --- a/answer_files/7/Autounattend.xml +++ b/answer_files/7/Autounattend.xml @@ -227,14 +227,6 @@ 21 Disable Hibernation Mode - - - cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\dis-updates.ps1 - Disable Windows Updates + cmd.exe /c a:\microsoft-updates.bat 98 - true + Enable Microsoft Updates cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 diff --git a/answer_files/81/Autounattend.xml b/answer_files/81/Autounattend.xml index 4182dbea..a511c16d 100644 --- a/answer_files/81/Autounattend.xml +++ b/answer_files/81/Autounattend.xml @@ -224,14 +224,6 @@ 21 Disable Hibernation Mode - - - cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\dis-updates.ps1 - Disable Windows Updates + cmd.exe /c a:\microsoft-updates.bat 98 - true + Enable Microsoft Updates cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 From 15b74e4d9f5a8a740424d0d5b4a46b4ec6cb2eb9 Mon Sep 17 00:00:00 2001 From: Joe Fitzgerald Date: Sat, 17 May 2014 11:57:48 -0600 Subject: [PATCH 5/5] :abc: Update CHANGELOG for v1.19 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e97c4976..3514584a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ +## v1.19 (May 17th, 2014) + +* Enable Microsoft Updates by default (#60) +* Remove disable Windows Updates script from Windows 7 and 8.1; you can run this as a provioner step, and use Autounattend sections to achieve the same outcome + ## v1.18 (May 16th, 2014) + * Require Vagrant 1.6.2 (#57) * Remove WinRM port forward, as it's done automatically in Vagrant 1.6.2+ (#57) * Update chef-client source to getchef.com (#63)