Skip to content

Commit

Permalink
Fixed up URLs for the WMF 3 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Feb 14, 2019
1 parent 0003f0f commit d000c48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/Install-WMF3Hotfix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Function Run-Process($executable, $arguments) {
$psi.Arguments = $arguments
Write-Verbose -Message "starting new process '$executable $arguments'"
$process.Start() | Out-Null

$process.WaitForExit() | Out-Null
$exit_code = $process.ExitCode
Write-Verbose -Message "process completed with exit code '$exit_code'"
Expand Down Expand Up @@ -108,23 +108,25 @@ if (-not (Test-Path -Path $tmp_dir)) {
$os_version = [Version](Get-Item -Path "$env:SystemRoot\System32\kernel32.dll").VersionInfo.ProductVersion
$host_string = "$($os_version.Major).$($os_version.Minor)-$($env:PROCESSOR_ARCHITECTURE)"
switch($host_string) {
# These URLS point to the Ansible Core CI S3 bucket, MS no longer provide a link to Server 2008 so we need to
# rely on this URL. There are no guarantees this will stay up in the future.
"6.0-x86" {
$url = "https://hotfixv4.trafficmanager.net/Windows%20Vista/sp3/Fix467401/6000/free/464091_intl_i386_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/464091_intl_i386_zip.exe"
}
"6.0-AMD64" {
$url = "https://hotfixv4.trafficmanager.net/Windows%20Vista/sp3/Fix467401/6000/free/464090_intl_x64_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/464090_intl_x64_zip.exe"
}
"6.1-x86" {
$url = "https://hotfixv4.trafficmanager.net/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix467402/7600/free/463983_intl_i386_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/463983_intl_i386_zip.exe"
}
"6.1-AMD64" {
$url = "https://hotfixv4.trafficmanager.net/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix467402/7600/free/463984_intl_x64_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/463984_intl_x64_zip.exe"
}
"6.2-x86" {
$url = "https://hotfixv4.trafficmanager.net/Windows%208%20RTM/nosp/Fix452763/9200/free/463940_intl_i386_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/463940_intl_i386_zip.exe"
}
"6.2-AMD64" {
$url = "https://hotfixv4.trafficmanager.net/Windows%208%20RTM/nosp/Fix452763/9200/free/463941_intl_x64_zip.exe"
$url = "https://s3.amazonaws.com/ansible-ci-files/hotfixes/KB2842230/463941_intl_x64_zip.exe"
}
}

Expand Down
1 change: 1 addition & 0 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and have been uploaded to the Vagrant Cloud service;
* jborean93/WindowsServer2012
* jborean93/WindowsServer2012R2
* jborean93/WindowsServer2016
* jborean93/WindowsServer2019

See the repo url or [this blog post](http://www.bloggingforlogging.com/2017/11/23/using-packer-to-create-windows-images/)
for more details.
Expand Down

1 comment on commit d000c48

@s-newman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, thank you so much for this update. It's the only way I've been able to apply this KB to Windows Server 2008 R2, since it's not officially hosted anymore. Not even a choco install KB2842230 works for this one.

This commit is going to save me several hours of pain, which is great considering it's 1:55 AM local time right now. Thanks again :^)

Please sign in to comment.