{"id":1551,"date":"2026-12-01T15:00:12","date_gmt":"2026-12-01T06:00:12","guid":{"rendered":"https:\/\/www.winserver.net\/blog\/?p=1551"},"modified":"2026-12-02T09:10:02","modified_gmt":"2026-12-02T00:10:02","slug":"microsoft-code-red-patchpocalypse-windows-server-updates-ai","status":"publish","type":"post","link":"https:\/\/www.winserver.net\/blog\/microsoft-code-red-patchpocalypse-windows-server-updates-ai\/","title":{"rendered":"Microsoft&#8217;s Code Red and the &#8220;Patchpocalypse&#8221;: How to Use AI to Stay Ahead of Windows Server Updates"},"content":{"rendered":"<p><em>Last updated: November 25, 2026<\/em><\/p>\n<p>In November 2026, Microsoft declared a <strong>code red<\/strong>, its top-priority alarm, after a roughly 24-hour outage on November 12\u201313 knocked out Outlook, Teams and Copilot. The cause wasn&#8217;t hackers: it was a flaw in Microsoft&#8217;s own software, introduced in July, that went unnoticed for about four months.<\/p>\n<p>It happened in the middle of what&#8217;s being called <strong>&#8220;Patchpocalypse&#8221;<\/strong>: a flood of newly discovered software flaws, many of them found by AI. Newly reported flaws hit a record of almost 17,500 in October alone, and as one analyst warned, <em>&#8220;every patch is a chance for something to break.&#8221;<\/em><\/p>\n<p>For anyone running a Windows Server, that creates a real dilemma: patch fast because attackers are faster than ever, but patch carefully because updates can break things. This guide gives you a practical routine with copy-paste PowerShell scripts, plus a <strong>daily AI briefing<\/strong> that tells you in plain English which updates matter for your server.<\/p>\n<div style=\"border: 2px solid #045FA4; border-radius: 8px; background: #F4F8FC; padding: 16px 20px; margin: 0 0 24px;\">\n<p style=\"margin: 0 0 8px; font-weight: bold; color: #394f6d;\">Quick answer<\/p>\n<ul style=\"margin: 0; padding-left: 20px;\">\n<li><strong>Always install updates:<\/strong> attackers now often exploit flaws quickly, sometimes before a fix exists.<\/li>\n<li><strong>Install on a schedule:<\/strong> schedule updates for a quiet time, check Microsoft&#8217;s known issues first, and have a backup.<\/li>\n<li><strong>Use AI for the reading, not the deciding:<\/strong> a daily script can summarize your server&#8217;s pending updates and Microsoft&#8217;s actively exploited flaws, so you know what&#8217;s urgent.<\/li>\n<li><strong>Plan for outages:<\/strong> even Microsoft goes down, so don&#8217;t rely on a single cloud service for everything.<\/li>\n<\/ul>\n<\/div>\n<h2>What Happened: Microsoft&#8217;s Code Red<\/h2>\n<ul>\n<li><strong>The outage:<\/strong> on November 12\u201313, a fault in Microsoft&#8217;s own systems took down Outlook, Teams and Copilot for around 24 hours. Microsoft ruled out hackers and AI agents.<\/li>\n<li><strong>The scale:<\/strong> Microsoft 365 promises 99.9% uptime, which allows about 44 minutes of downtime a month. By Yahoo Finance&#8217;s calculation, one 24-hour outage used up nearly three years&#8217; worth of that allowance, although not every customer was down that long.<\/li>\n<li><strong>The response:<\/strong> according to internal memos reported by Reuters, Microsoft&#8217;s new goal is to fix future problems worldwide within an hour. A recent urgent fix had taken five to six days to reach everyone.<\/li>\n<\/ul>\n<h2>The &#8220;Patchpocalypse&#8221;: Why Updates Feel Overwhelming<\/h2>\n<ul>\n<li><strong>Record numbers of flaws:<\/strong> almost 17,500 new flaws were reported in October 2026, many discovered with AI. Microsoft&#8217;s own monthly updates now fix hundreds of vulnerabilities at a time.<\/li>\n<li><strong>Attackers are faster than ever:<\/strong> according to Google&#8217;s Mandiant, attackers took an average of 63 days to exploit a newly revealed flaw in 2018\u201319. In 2024, attacks began on average a day <em>before<\/em> a fix was available, and Mandiant estimates that head start grew to about a week in 2025.<\/li>\n<li><strong>But updates can break things:<\/strong> this month alone, Microsoft confirmed that its November updates caused Windows activation errors and printing problems, and that updates since October caused SQL Server performance issues.<\/li>\n<\/ul>\n<p>So you shouldn&#8217;t update immediately or just never update. The best approach is a routine: know what&#8217;s waiting, installing on a schedule, check for known problems, and being able to undo an update if needed.<\/p>\n<h2>Step 1: Check Your Server&#8217;s Update Status<\/h2>\n<p>This script shows your last installed updates, any updates waiting to install (with Microsoft&#8217;s severity rating), whether a restart is pending, and your current update schedule. <strong>It doesn&#8217;t change anything.<\/strong> Run it in <strong>Windows PowerShell as Administrator<\/strong>:<\/p>\n<pre><code class=\"language-powershell\"># Windows Update status report. Changes nothing.\r\n# Run in Windows PowerShell as Administrator.\r\n\r\n\"=== Last 10 installed updates ===\"\r\nGet-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10 HotFixID, Description, InstalledOn | Format-Table -AutoSize\r\n\r\n\"=== Updates waiting to be installed (this can take a minute) ===\"\r\n$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()\r\n$pending = $searcher.Search(\"IsInstalled=0 and IsHidden=0 and Type='Software'\").Updates\r\nif ($pending.Count -eq 0) {\r\n    \"None. This server is up to date.\"\r\n} else {\r\n    $pending | ForEach-Object {\r\n        [pscustomobject]@{\r\n            KB       = \"KB\" + (@($_.KBArticleIDs) -join \",KB\")\r\n            Severity = $_.MsrcSeverity\r\n            Title    = $_.Title\r\n        }\r\n    } | Format-Table -AutoSize -Wrap\r\n}\r\n\r\n\"=== Restart needed? ===\"\r\n$restart = (Test-Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\\RebootRequired\") -or\r\n           (Test-Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Component Based Servicing\\RebootPending\")\r\nif ($restart) { \"YES: updates are waiting for a restart to finish installing.\" } else { \"No restart pending.\" }\r\n\r\n\"=== Update schedule set by policy ===\"\r\n$au = Get-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\" -ErrorAction SilentlyContinue\r\nif ($au) {\r\n    $days = \"Every day\", \"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"\r\n    \"Mode: AUOptions=$($au.AUOptions)  (4 = install on schedule, 3 = download and notify, 2 = notify only)\"\r\n    if ($null -ne $au.ScheduledInstallDay) { \"Install day: $($days[$au.ScheduledInstallDay])  Time: $($au.ScheduledInstallTime):00\" }\r\n} else {\r\n    \"No schedule policy set: Windows uses its default automatic behavior.\"\r\n}<\/code><\/pre>\n<p><strong>What to look for:<\/strong><\/p>\n<ul>\n<li><strong>Critical or Important updates waiting<\/strong> for more than a week or two: install them as soon as you can.<\/li>\n<li><strong>&#8220;Restart needed: YES&#8221;<\/strong>: updates aren&#8217;t fully installed until the server restarts. Plan a restart at a quiet time.<\/li>\n<\/ul>\n<h2>Step 2: Install Updates on a Schedule<\/h2>\n<p>Instead of letting Windows install and restart whenever it decides, set a fixed time when a restart won&#8217;t hurt. This script sets updates to install and restart <strong>every Sunday at 3:00 AM<\/strong> (server time). Change <code>$Day<\/code> and <code>$Hour<\/code> to suit you:<\/p>\n<pre><code class=\"language-powershell\"># Sets when Windows installs updates and restarts.\r\n# Run in Windows PowerShell as Administrator. Change the settings below first.\r\n\r\n$Mode    = \"Scheduled\"  # \"Scheduled\" = install automatically at the time below\r\n                        # \"NotifyOnly\" = download, but wait for you to install (use while a bad update is being fixed)\r\n$Day     = 1            # 0 = every day, 1 = Sunday, 2 = Monday ... 7 = Saturday\r\n$Hour    = 3            # 0-23, in the server's time zone\r\n\r\n$key = \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\"\r\nNew-Item -Path $key -Force | Out-Null\r\nSet-ItemProperty -Path $key -Name NoAutoUpdate -Value 0 -Type DWord\r\n\r\nif ($Mode -eq \"Scheduled\") {\r\n    Set-ItemProperty -Path $key -Name AUOptions -Value 4 -Type DWord\r\n    Set-ItemProperty -Path $key -Name ScheduledInstallDay -Value $Day -Type DWord\r\n    Set-ItemProperty -Path $key -Name ScheduledInstallTime -Value $Hour -Type DWord\r\n    # Restart at the scheduled time (with a 15-minute warning) instead of at a random moment\r\n    Set-ItemProperty -Path $key -Name AlwaysAutoRebootAtScheduledTime -Value 1 -Type DWord\r\n    Set-ItemProperty -Path $key -Name AlwaysAutoRebootAtScheduledTimeMinutes -Value 15 -Type DWord\r\n    \"Updates will install and the server will restart on day $Day at ${Hour}:00.\"\r\n} else {\r\n    Set-ItemProperty -Path $key -Name AUOptions -Value 3 -Type DWord\r\n    \"Updates will download, but nothing installs until you choose to.\"\r\n}\r\n\r\nRestart-Service wuauserv<\/code><\/pre>\n<p><strong>Choosing a time:<\/strong> pick when your server is least used. For trading servers, weekends are ideal because forex markets are closed. For business servers, early Sunday morning in your users&#8217; time zone usually works.<\/p>\n<p><strong>To go back to Windows&#8217; default behavior,<\/strong> remove the schedule:<\/p>\n<pre><code class=\"language-powershell\">Remove-Item \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\" -Recurse\r\nRestart-Service wuauserv<\/code><\/pre>\n<h2>Step 3: Before Updates Install, Check for Known Problems<\/h2>\n<ol>\n<li><strong>Check Microsoft&#8217;s known issues.<\/strong> Search for <strong>&#8220;Windows release health&#8221;<\/strong>, then open the page for your Windows Server version. It lists problems Microsoft has confirmed with recent updates, plus workarounds.<\/li>\n<li><strong>Read the update&#8217;s own page.<\/strong> Every update has a support page at <code>support.microsoft.com\/help\/<\/code> followed by its KB number (for example, <code>support.microsoft.com\/help\/5131080<\/code>), with a &#8220;Known issues&#8221; section.<\/li>\n<li><strong>Have a backup.<\/strong> Before major updates, make sure you can restore the server if something goes wrong. [CONFIRM: describe Winserver&#8217;s backup or snapshot options here.]<\/li>\n<\/ol>\n<p>If a known issue affects software you use (for example, the SQL Server problem), switch to <strong>NotifyOnly<\/strong> mode in the Step 2 script until Microsoft releases a fix. Updates will still download, but won&#8217;t install until you choose.<\/p>\n<h2>Step 4: If an Update Breaks Something, Roll It Back<\/h2>\n<p>Monthly Windows updates now include a servicing stack update, so the old <code>wusa \/uninstall<\/code> command no longer works on them. Use DISM instead.<\/p>\n<p><strong>1. Find the cumulative update package:<\/strong><\/p>\n<pre><code class=\"language-powershell\">Get-WindowsPackage -Online | Where-Object PackageName -like \"*RollupFix*\" |\r\n  Sort-Object InstallTime -Descending | Select-Object PackageName, InstallTime<\/code><\/pre>\n<p><strong>2. Remove the most recent one<\/strong> (copy its full name from the list), then restart:<\/p>\n<pre><code class=\"language-powershell\">Remove-WindowsPackage -Online -PackageName \"Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.xxxxx.x.x\" -NoRestart\r\nRestart-Computer<\/code><\/pre>\n<p><strong>3. Stop it reinstalling straight away:<\/strong> run the Step 2 script in <strong>NotifyOnly<\/strong> mode until Microsoft fixes the problem, then switch back to <strong>Scheduled<\/strong>.<\/p>\n<p><strong>Important:<\/strong> removing an update also removes its security fixes. Treat it as a short-term measure. Microsoft often fixes known problems automatically (with a &#8220;Known Issue Rollback&#8221;) or with an emergency update within days, so check the release health page before uninstalling.<\/p>\n<div class=\"ws-plan-box\" style=\"border: 2px solid #045FA4; border-radius: 10px; padding: 20px 24px; margin: 32px 0; background: #f5f9fd;\">\n<p style=\"margin: 0 0 6px; font-size: 0.85em; font-weight: bold; color: #0189ff; letter-spacing: 0.05em;\">WINDOWS VPS IN JAPAN<\/p>\n<p style=\"margin: 0 0 10px; font-size: 1.25em; font-weight: bold; color: #394f6d;\">A Windows Server you control, on your schedule<\/p>\n<p style=\"margin: 0 0 16px; color: #394f6d;\">Choose when updates install, roll back a bad patch yourself, and keep important files and tools reachable even when a big cloud service goes down. A Winserver VPS gives you Windows Server with the license included, full administrator access and guaranteed memory, hosted in a data center in Osaka, Japan.<\/p>\n<p><a class=\"ws-plan-btn\" href=\"https:\/\/www.winserver.net\/#pricing\" style=\"display: inline-block; background: #045FA4; color: #fff; padding: 10px 22px; border-radius: 6px; font-weight: bold; text-decoration: none;\">See Windows VPS Plans \u2192<\/a><\/p>\n<p style=\"margin: 10px 0 0; font-size: 0.8em; color: #6b7c93;\">Recommended: 4 GB plan from $19.80\/month \u00b7 Windows license included \u00b7 No setup fees<\/p>\n<\/div>\n<h2>Step 5: Get a Daily AI Update Briefing<\/h2>\n<p>Keeping up with hundreds of fixes a month is exactly the kind of reading AI is good at. This script runs once a day and:<\/p>\n<ol>\n<li>Lists the updates waiting on your server, and whether a restart is pending.<\/li>\n<li>Downloads Microsoft&#8217;s list of <strong>actively exploited<\/strong> vulnerabilities for the month from Microsoft&#8217;s free Security Update Guide API.<\/li>\n<li>Sends only those facts to Claude (Anthropic&#8217;s AI) and asks for a short, plain-English briefing: how urgent things are, which updates matter for your server, and which exploited flaws affect Windows Server.<\/li>\n<li>Saves the briefing to a file and, optionally, sends it to Slack, Discord or Microsoft Teams.<\/li>\n<\/ol>\n<p><strong>It never installs anything.<\/strong> You stay in control; the AI just saves you the reading.<\/p>\n<p><strong>What&#8217;s sent to the AI:<\/strong> update names and KB numbers, your Windows version, the public list of exploited vulnerabilities and the one-line server description you write. No files, passwords or personal data.<\/p>\n<h3>5a. Get an API key and store it<\/h3>\n<p>Create an account on the <strong>Anthropic Console<\/strong> (console.anthropic.com), add a payment method, and create an API key. A daily briefing uses very little; check Anthropic&#8217;s pricing page for current rates.<\/p>\n<p>Store the key on the server as a system setting, so it isn&#8217;t written inside the script (replace the example with your key):<\/p>\n<pre><code class=\"language-powershell\">[Environment]::SetEnvironmentVariable(\"ANTHROPIC_API_KEY\", \"sk-ant-your-key-here\", \"Machine\")<\/code><\/pre>\n<p>Anyone with administrator access to the server can read this value, so only give administrator access to people you trust.<\/p>\n<h3>5b. Create the script<\/h3>\n<pre><code class=\"language-powershell\">New-Item -ItemType Directory -Force -Path C:\\Scripts\r\nnotepad C:\\Scripts\\ai-update-briefing.ps1<\/code><\/pre>\n<p>Paste the following, change <code>$ServerRole<\/code> to describe your server, and save:<\/p>\n<pre><code class=\"language-powershell\"># AI update briefing: checks this server's pending updates and Microsoft's list of\r\n# actively exploited flaws, asks Claude for a plain-language summary, saves it\r\n# and (optionally) sends it to Slack, Discord or Microsoft Teams.\r\n# It never installs anything. Save as C:\\Scripts\\ai-update-briefing.ps1\r\n# Requires: an Anthropic API key stored as described in the article.\r\n\r\n# ---------------- Settings ----------------\r\n$Model       = \"claude-sonnet-5-5\"   # or \"claude-haiku-5-5\" for lower cost\r\n$ServerRole  = \"Windows Server running IIS websites and SQL Server\"   # describe your server\r\n$ReportDir   = \"C:\\Scripts\\update-reports\"\r\n$WebhookType = \"\"                    # \"slack\", \"discord\", \"teams\", or \"\" for none\r\n$WebhookUrl  = \"\"                    # your webhook address\r\n# ------------------------------------------\r\n\r\n$ErrorActionPreference = \"Stop\"\r\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\r\nNew-Item -ItemType Directory -Force -Path $ReportDir | Out-Null\r\n$apiKey = [Environment]::GetEnvironmentVariable(\"ANTHROPIC_API_KEY\", \"Machine\")\r\nif (-not $apiKey) { throw \"ANTHROPIC_API_KEY is not set. See the article for how to store it.\" }\r\n\r\n# 1. Updates waiting on this server\r\n$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()\r\n$pending = @($searcher.Search(\"IsInstalled=0 and IsHidden=0 and Type='Software'\").Updates | ForEach-Object {\r\n    \"- KB$(@($_.KBArticleIDs) -join ',KB') | severity: $($_.MsrcSeverity) | $($_.Title)\"\r\n})\r\nif ($pending.Count -eq 0) { $pending = @(\"- None\") }\r\n\r\n$restart = (Test-Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\\RebootRequired\") -or\r\n           (Test-Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Component Based Servicing\\RebootPending\")\r\n$recent = Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5 |\r\n    ForEach-Object { \"- $($_.HotFixID) installed $($_.InstalledOn)\" }\r\n$os = (Get-CimInstance Win32_OperatingSystem)\r\n\r\n# 2. Flaws Microsoft marks as actively exploited this month (falls back to last month)\r\n$culture = [Globalization.CultureInfo]::InvariantCulture\r\n$exploited = @()\r\nforeach ($offset in 0, -1) {\r\n    $id = (Get-Date).AddMonths($offset).ToString(\"yyyy-MMM\", $culture)\r\n    try {\r\n        $doc = Invoke-RestMethod -Uri \"https:\/\/api.msrc.microsoft.com\/cvrf\/v3.0\/cvrf\/$id\" -Headers @{ Accept = \"application\/json\" }\r\n        $exploited = @($doc.Vulnerability | Where-Object {\r\n            $_.Threats | Where-Object { $_.Description.Value -like \"*Exploited:Yes*\" }\r\n        } | ForEach-Object { \"- $($_.CVE): $($_.Title.Value)\" })\r\n        $msrcMonth = $id\r\n        break\r\n    } catch { continue }\r\n}\r\nif ($exploited.Count -eq 0) { $exploited = @(\"- None listed (or Microsoft's data could not be reached)\") }\r\n\r\n# 3. Ask Claude for a summary, using only the facts above\r\n$prompt = @\"\r\nYou are helping the administrator of a $ServerRole.\r\nOperating system: $($os.Caption) (build $($os.BuildNumber)).\r\nRestart pending: $restart\r\n\r\nUpdates waiting to be installed on this server:\r\n$($pending -join \"`n\")\r\n\r\nFive most recently installed updates:\r\n$($recent -join \"`n\")\r\n\r\nVulnerabilities Microsoft marks as actively exploited in its $msrcMonth security release:\r\n$($exploited -join \"`n\")\r\n\r\nWrite a short briefing (under 200 words) in plain English:\r\n1. Overall urgency: Install soon \/ Install at the next scheduled time \/ Nothing to do.\r\n2. Which waiting updates matter most for this server, and why.\r\n3. Which exploited vulnerabilities are relevant to Windows Server, if any.\r\n4. A reminder to check Microsoft's Windows release health page for known issues before installing.\r\nUse only the information above. If something is unclear, say so instead of guessing.\r\n\"@\r\n\r\n$body = @{\r\n    model      = $Model\r\n    max_tokens = 800\r\n    messages   = @(@{ role = \"user\"; content = $prompt })\r\n} | ConvertTo-Json -Depth 5\r\n\r\n$response = Invoke-RestMethod -Uri \"https:\/\/api.anthropic.com\/v1\/messages\" -Method Post `\r\n    -Headers @{ \"x-api-key\" = $apiKey; \"anthropic-version\" = \"2023-06-01\" } `\r\n    -ContentType \"application\/json; charset=utf-8\" -Body ([Text.Encoding]::UTF8.GetBytes($body))\r\n$summary = $response.content[0].text\r\n\r\n# 4. Save the report\r\n$report = \"Update briefing for $env:COMPUTERNAME - $(Get-Date -Format 'yyyy-MM-dd HH:mm')`n`n$summary`n`n--- Raw data ---`n$prompt\"\r\n$file = Join-Path $ReportDir \"briefing-$(Get-Date -Format 'yyyy-MM-dd').txt\"\r\nSet-Content -Path $file -Value $report -Encoding UTF8\r\n\r\n# 5. Send it (optional)\r\n$message = \"Update briefing for ${env:COMPUTERNAME}:`n$summary\"\r\nswitch ($WebhookType) {\r\n    \"slack\"   { $payload = @{ text = $message } }\r\n    \"discord\" { $payload = @{ content = $message.Substring(0, [Math]::Min(1900, $message.Length)) } }\r\n    \"teams\"   { $payload = @{ type = \"message\"; attachments = @(@{\r\n                    contentType = \"application\/vnd.microsoft.card.adaptive\"\r\n                    content = @{ type = \"AdaptiveCard\"; version = \"1.4\"\r\n                                 body = @(@{ type = \"TextBlock\"; text = $message; wrap = $true }) } }) } }\r\n    default   { $payload = $null }\r\n}\r\nif ($payload) {\r\n    Invoke-RestMethod -Uri $WebhookUrl -Method Post -ContentType \"application\/json; charset=utf-8\" `\r\n        -Body ([Text.Encoding]::UTF8.GetBytes(($payload | ConvertTo-Json -Depth 8)))\r\n}\r\n\r\n\"Briefing saved to $file\"<\/code><\/pre>\n<p><strong>Test it:<\/strong><\/p>\n<pre><code class=\"language-powershell\">powershell -NoProfile -ExecutionPolicy Bypass -File C:\\Scripts\\ai-update-briefing.ps1\r\nGet-Content (Get-ChildItem C:\\Scripts\\update-reports | Sort-Object LastWriteTime | Select-Object -Last 1).FullName<\/code><\/pre>\n<p>The second line shows the newest briefing. The bottom of the file includes the raw data that was sent, so you can check the AI&#8217;s summary against the facts.<\/p>\n<h3>5c. Run it every morning<\/h3>\n<pre><code class=\"language-powershell\">$action = New-ScheduledTaskAction -Execute \"powershell.exe\" -Argument \"-NoProfile -ExecutionPolicy Bypass -File C:\\Scripts\\ai-update-briefing.ps1\"\r\n$trigger = New-ScheduledTaskTrigger -Daily -At 9am\r\n$principal = New-ScheduledTaskPrincipal -UserId \"SYSTEM\" -RunLevel Highest\r\nRegister-ScheduledTask -TaskName \"AI update briefing\" -Action $action -Trigger $trigger -Principal $principal<\/code><\/pre>\n<h3>5d. Optional: send it to your team chat<\/h3>\n<p>Set <code>$WebhookType<\/code> and <code>$WebhookUrl<\/code> at the top of the script:<\/p>\n<ul>\n<li><strong>Slack:<\/strong> create an &#8220;Incoming Webhook&#8221; for a channel, then use <code>\"slack\"<\/code>.<\/li>\n<li><strong>Discord:<\/strong> in the channel&#8217;s settings, choose Integrations &gt; Webhooks &gt; New Webhook, then use <code>\"discord\"<\/code>.<\/li>\n<li><strong>Microsoft Teams:<\/strong> in the channel, add the Workflows template <strong>&#8220;Post to a channel when a webhook request is received&#8221;<\/strong>, then use <code>\"teams\"<\/code>.<\/li>\n<\/ul>\n<h3>Why not let AI install updates by itself?<\/h3>\n<p>AI is good at summarizing, but it can misjudge risk, and it doesn&#8217;t know about problems Microsoft hasn&#8217;t published yet. &#8220;Every patch is a chance for something to break&#8221;, so keep a person in the loop: the AI briefs you, updates install on your schedule, and you pause them when a known issue affects your server. If you want to build more automation around this, an AI coding assistant can help; see <span style=\"color: #000000;\"><strong><a href=\"https:\/\/www.winserver.net\/blog\/claude-code-vps\/\" style=\"color: #000000;\">how to run Claude Code 24\/7 on a Windows VPS<\/a>.<\/strong><\/span><\/p>\n<h2>Step 6: Keep Your Data Reachable When the Cloud Goes Down<\/h2>\n<p>Microsoft&#8217;s outage shows that even the biggest providers fail. During those 24 hours, many businesses couldn&#8217;t open their email, chats or shared files, not because the data was lost, but because <strong>the only way to reach it was through the service that was down<\/strong>.<\/p>\n<p>A Windows server you control gives you a <strong>second, independent place<\/strong> to keep important data and tools. It doesn&#8217;t make you immune to outages (any server can have problems), but it means one provider&#8217;s failure no longer stops everything.<\/p>\n<h3>What to keep on your own server<\/h3>\n<ul>\n<li><strong>Copies of important files:<\/strong> contracts, price lists, customer records and anything your team needs every day. Share them securely over the internet with <a href=\"https:\/\/www.winserver.net\/blog\/smb-over-quic-firewall-udp-443\/\"><span style=\"color: #000000;\"><strong>SMB over QUIC on Windows Serve<\/strong><strong>r<\/strong><\/span><\/a>, so your team can still open them when cloud storage is down.<\/li>\n<li><strong>Business-critical software:<\/strong> accounting tools, databases, trading platforms and internal web apps can run on your own server instead of depending on someone else&#8217;s cloud.<\/li>\n<li><strong>A backup way to work and communicate:<\/strong> a Remote Desktop environment your team can sign in to from anywhere, with the tools they need.<\/li>\n<\/ul>\n<h3>Copy important files to your server automatically<\/h3>\n<p>This example copies a folder from a work PC to a share on your server every evening, so an up-to-date copy is always available. On the <strong>work PC<\/strong>, change the folder and share names to your own:<\/p>\n<pre><code class=\"language-powershell\">$action = New-ScheduledTaskAction -Execute \"robocopy.exe\" -Argument '\"C:\\Work\\Important\" \"\\\\fileserver.example.com\\Backup\\Important\" \/MIR \/R:2 \/W:5'\r\n$trigger = New-ScheduledTaskTrigger -Daily -At 7pm\r\nRegister-ScheduledTask -TaskName \"Copy important files to server\" -Action $action -Trigger $trigger<\/code><\/pre>\n<p><code>\/MIR<\/code> keeps the copy identical to the original, including deletions. Point it at a dedicated backup folder, and keep separate backups too (below).<\/p>\n<h3>Follow the 3-2-1 rule<\/h3>\n<p>Keep <strong>3<\/strong> copies of important data, on <strong>2<\/strong> different kinds of storage, with <strong>1<\/strong> copy in a separate location. For example: the original in your cloud service, a copy on your own server, and a backup somewhere else. Then no single outage, mistake or ransomware attack can take everything.<\/p>\n<h3>Why a server in a different location helps<\/h3>\n<p>Outages are often regional or tied to one provider&#8217;s systems. A server with a different provider, in a different place, is less likely to fail at the same time. A Windows VPS in Japan, for example, sits outside the infrastructure most US and European cloud services depend on.<\/p>\n<p>For a deeper look, see<span style=\"color: #000000;\"><strong> <a href=\"https:\/\/www.winserver.net\/blog\/stay-online-during-cloud-outages\/\" style=\"color: #000000;\">Stay Online During Cloud Outages: Why You Need a Japan-Based Backup Server<\/a>.<\/strong><\/span><\/p>\n<h2>Troubleshooting<\/h2>\n<div style=\"overflow-x: auto;\">\n<table>\n<thead>\n<tr>\n<th>Problem<\/th>\n<th>Likely cause<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Step 1 is slow on &#8220;Updates waiting&#8221;<\/td>\n<td>Windows is checking Microsoft&#8217;s servers<\/td>\n<td>Normal. It can take a minute or two.<\/td>\n<\/tr>\n<tr>\n<td>Updates still install at random times<\/td>\n<td>The schedule wasn&#8217;t applied<\/td>\n<td>Run the Step 1 script to check the schedule, then rerun the Step 2 script as Administrator.<\/td>\n<\/tr>\n<tr>\n<td><code>wusa \/uninstall<\/code> fails<\/td>\n<td>The update includes a servicing stack update<\/td>\n<td>Use the DISM method in Step 4.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;ANTHROPIC_API_KEY is not set&#8221;<\/td>\n<td>The key wasn&#8217;t stored as a system setting<\/td>\n<td>Run the command in Step 5a in PowerShell as Administrator, using <code>\"Machine\"<\/code> at the end.<\/td>\n<\/tr>\n<tr>\n<td>Error 401 from the API<\/td>\n<td>The API key is wrong or was deleted<\/td>\n<td>Create a new key in the Anthropic Console and store it again.<\/td>\n<\/tr>\n<tr>\n<td>Error 404 mentioning the model<\/td>\n<td>The model name has changed<\/td>\n<td>Check the current model names in Anthropic&#8217;s documentation and update <code>$Model<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Exploited&#8221; list says Microsoft&#8217;s data couldn&#8217;t be reached<\/td>\n<td>Network or firewall blocking the API, or a temporary outage<\/td>\n<td>Check the server can reach <code>api.msrc.microsoft.com<\/code>. The briefing still covers your pending updates.<\/td>\n<\/tr>\n<tr>\n<td>Scripts won&#8217;t run (&#8220;running scripts is disabled&#8221;)<\/td>\n<td>PowerShell&#8217;s execution policy<\/td>\n<td>Run the file with <code>powershell -ExecutionPolicy Bypass -File<\/code>, as in the examples.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Windows Server Update Checklist<\/h2>\n<ul>\n<li>Update status checked regularly (Step 1)<\/li>\n<li>Updates install on a fixed schedule at a quiet time (Step 2)<\/li>\n<li>Known issues checked before major updates, and a backup in place (Step 3)<\/li>\n<li>You know how to roll back a bad update (Step 4)<\/li>\n<li>A daily AI briefing tells you what&#8217;s urgent (Step 5)<\/li>\n<li>Copies of important files and tools on a server you control (Step 6)<\/li>\n<li>The 3-2-1 backup rule in place (Step 6)<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>Q1. What is Microsoft&#8217;s &#8220;code red&#8221;?<\/h3>\n<p>It&#8217;s Microsoft&#8217;s top-priority internal alarm, declared after a roughly 24-hour outage on November 12\u201313, 2026, that took down Outlook, Teams and Copilot. Microsoft&#8217;s goal is now to fix future problems worldwide within an hour.<\/p>\n<h3>Q2. What is the &#8220;Patchpocalypse&#8221;?<\/h3>\n<p>A term for the current flood of newly discovered software flaws, many found by AI. Almost 17,500 new flaws were reported in October 2026, which means more updates to install and more chances for updates to cause problems.<\/p>\n<h3>Q3. Should I install Windows updates immediately?<\/h3>\n<p>Install security updates promptly, especially ones fixing actively exploited flaws, but on a schedule you control. Check Microsoft&#8217;s known issues first, and have a backup in case something breaks.<\/p>\n<h3>Q4. Can AI install Windows updates automatically?<\/h3>\n<p>It could, but it isn&#8217;t a good idea for important servers. AI can misjudge risk and doesn&#8217;t know about unpublished problems. Use AI to summarize what&#8217;s waiting and what&#8217;s urgent, and let your schedule and your own judgment handle installation.<\/p>\n<h3>Q5. How do I uninstall a bad Windows update on Windows Server?<\/h3>\n<p>Find the cumulative update with <code>Get-WindowsPackage -Online<\/code> (look for &#8220;RollupFix&#8221;), remove it with <code>Remove-WindowsPackage<\/code>, and restart. <code>wusa \/uninstall<\/code> no longer works for combined updates.<\/p>\n<h3>Q6. Is it safe to send update information to an AI service?<\/h3>\n<p>The script in this guide only sends update names, your Windows version, Microsoft&#8217;s public vulnerability list and a one-line description you write. No files, passwords or personal data.<\/p>\n<h3>Q7. How do I know which vulnerabilities are being actively exploited?<\/h3>\n<p>Microsoft marks them in its Security Update Guide. The Step 5 script downloads this list automatically each day using Microsoft&#8217;s free API.<\/p>\n<h3>Q8. How can a Windows server keep my data available during a cloud outage?<\/h3>\n<p>By giving you a second, independent place to keep important files and software. If a cloud service goes down, your team can still reach copies on your own server, for example through a secure file share or Remote Desktop. Combine it with the 3-2-1 backup rule so no single failure takes everything.<\/p>\n<p><strong>Sources:<\/strong> <a href=\"https:\/\/finance.yahoo.com\/markets\/article\/microsoft-declares-a-code-red-in-the-middle-of-a-patchpocalypse-193740712.html\" target=\"_blank\" rel=\"noopener\">Yahoo Finance: Microsoft declares a code red in the middle of a &#8220;Patchpocalypse&#8221;<\/a>; <a href=\"https:\/\/www.bleepingcomputer.com\/news\/microsoft\/microsoft-confirms-windows-activation-failures-after-november-updates\/\" target=\"_blank\" rel=\"noopener\">BleepingComputer: November updates cause activation failures<\/a>; <a href=\"https:\/\/www.microsoft.com\/en-us\/msrc\/blog\/2021\/02\/continuing-to-listen-good-news-about-the-security-update-guide-api\" target=\"_blank\" rel=\"noopener\">Microsoft: Security Update Guide API<\/a>; <a href=\"https:\/\/learn.microsoft.com\/windows\/deployment\/update\/waas-wu-settings\" target=\"_blank\" rel=\"noopener\">Microsoft Learn: Windows Update settings<\/a><\/p>\n<section class=\"winserver-cta-section\">\n<h2>A Windows Server You Control<\/h2>\n<p>Winserver&#8217;s Windows VPS plans include the Windows Server license and full administrator access, so you decide when updates install and how your server is protected. English support is included.<\/p>\n<div class=\"winserver-cta-button-wrapper\"><span style=\"color: #ffffff;\"><a href=\"https:\/\/www.winserver.net\/#pricing\" class=\"winserver-cta-button\" target=\"_blank\" rel=\"noopener\" style=\"color: #ffffff;\">View Windows VPS Plans<\/a><\/span><\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Last updated: November 25, 2026 In November 2026, Microsoft declared a code red, its top-priority alarm, after a roughly 24-hour outage on November 12\u201313 knocked out Outlook, Teams and Copilot. The cause wasn&#8217;t hackers: it was a flaw in Microsoft&#8217;s own software, introduced in July, that went unnoticed for about four months. It happened in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1571,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[372,7],"tags":[405,407,406,404,377,383,8,403,38],"class_list":["post-1551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-security","tag-ai","tag-backup","tag-claude","tag-patch-management","tag-powershell","tag-security","tag-windows-server","tag-windows-update","tag-windows-vps"],"_links":{"self":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/comments?post=1551"}],"version-history":[{"count":3,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1551\/revisions"}],"predecessor-version":[{"id":1575,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/posts\/1551\/revisions\/1575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/media\/1571"}],"wp:attachment":[{"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/media?parent=1551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/categories?post=1551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winserver.net\/blog\/wp-json\/wp\/v2\/tags?post=1551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}