Known Issue: Upgrading K2 on a Windows Server 2012 R2 Fails
KB002612
PRODUCT
Issue
The K2 Setup Manager hangs when upgrading K2 on a Windows Server 2012 R2 that has the July 2018 Security Update applied to it.
Cause
The Microsoft July 2018 Security Update has a known issue that the W3SVC remains in a "stopping" state, but cannot fully stop or it cannot be restarted. Due to this, iisreset command occasionally does not work causing HTTPS calls to hang indefinitely.
Resolution
Microsoft has a fix available: Improvements and fixes - Windows 8.1 and Server 2012 R2. Currently you must install the fix manually as it is not available in the Microsoft Update Catalog until September 2018.
Use this PowerShell script to install the update, restart the server, then restart the K2 upgrade:
{
logline "Installing KB4345424 hotfix"

Get-Download "https://appitdownload.blob.core.windows.net/public/windows8.1-kb4345424-x64.msu"
cmd /c start /wait wusa "$pwdwindows8.1-kb4345424-x64.msu" /quiet /log:D:kb4345424_install.log
Test-RebootStatus -AcceptReboot
}
They have also made the hotfix available here: http://download.windowsupdate.com/d/msdownload/update/software/updt/2018/07/windows8.1-kb4345424-x64_5e9e057b130d4cadea5f719d795fc8d8f4cf4310.msu