diff --git a/scripts/windows/slipstream.package.ps1 b/scripts/windows/slipstream.package.ps1 index bbcb8ab7e..84bbd0db2 100755 --- a/scripts/windows/slipstream.package.ps1 +++ b/scripts/windows/slipstream.package.ps1 @@ -13,12 +13,12 @@ if (Test-PendingReboot){ Invoke-Reboot } Write-BoxstarterMessage "Disabling Sleep timers" Disable-PC-Sleep -if (-not (Test-Path "A:\NET461.installed")) +if (-not (Test-Path "A:\NET462.installed")) { # Install .Net Framework 4.5.2 - Write-BoxstarterMessage "Installing .Net 4.6.1" - choco install dotnet4.6.1 -y --install-arguments="/q /norestart" - Touch-File "A:\NET461.installed" + Write-BoxstarterMessage "Installing .Net 4.6.2" + choco install dotnet-4.6.2 -y --install-arguments="/q /norestart" + Touch-File "A:\NET462.installed" if (Test-PendingReboot) { Invoke-Reboot } } diff --git a/templates/windows-2012r2-core/files/x86_64/virtualbox/windows-2012r2-core-x86_64-virtualbox-base.package.ps1 b/templates/windows-2012r2-core/files/x86_64/virtualbox/windows-2012r2-core-x86_64-virtualbox-base.package.ps1 index 0f2965492..45606142a 100755 --- a/templates/windows-2012r2-core/files/x86_64/virtualbox/windows-2012r2-core-x86_64-virtualbox-base.package.ps1 +++ b/templates/windows-2012r2-core/files/x86_64/virtualbox/windows-2012r2-core-x86_64-virtualbox-base.package.ps1 @@ -23,12 +23,12 @@ if (-not (Test-Path "A:\Autologon.installed")) Touch-File "A:\Autologon.installed" } -if (-not (Test-Path "A:\NET45.installed")) +if (-not (Test-Path "A:\NET462.installed")) { # Install .Net Framework 4.5.2 - Write-BoxstarterMessage "Installing .Net 4.5" - choco install dotnet4.6.1 -y --install-arguments="/q /norestart" - Touch-File "A:\NET45.installed" + Write-BoxstarterMessage "Installing .Net 4.6.2" + choco install dotnet-4.6.2 -y --install-arguments="/q /norestart" + Touch-File "A:\NET462.installed" if (Test-PendingReboot) { Invoke-Reboot } } diff --git a/templates/windows-2012r2-core/files/x86_64/vmware/windows-2012r2-core-x86_64-vmware-base.package.ps1 b/templates/windows-2012r2-core/files/x86_64/vmware/windows-2012r2-core-x86_64-vmware-base.package.ps1 index 360be4c46..4660871d6 100755 --- a/templates/windows-2012r2-core/files/x86_64/vmware/windows-2012r2-core-x86_64-vmware-base.package.ps1 +++ b/templates/windows-2012r2-core/files/x86_64/vmware/windows-2012r2-core-x86_64-vmware-base.package.ps1 @@ -13,13 +13,13 @@ if (Test-PendingReboot){ Invoke-Reboot } Write-BoxstarterMessage "Disabling Sleep timers" Disable-PC-Sleep -if (-not (Test-Path "A:\NET45.installed")) +if (-not (Test-Path "A:\NET462.installed")) { # Install .Net Framework 4.5.2 # Using explicit install here as choco install seems to misbehave sligtly with the /q argument - Write-BoxstarterMessage "Installing .Net 4.5" - choco install dotnet4.6.1 -y --install-arguments="/q /norestart" - Touch-File "A:\NET45.installed" + Write-BoxstarterMessage "Installing .Net 4.6.2" + choco install dotnet-4.6.2 -y --install-arguments="/q /norestart" + Touch-File "A:\NET462.installed" if (Test-PendingReboot) { Invoke-Reboot } }