惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyberwarzone
Cyberwarzone
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
The Hacker News
The Hacker News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Security Archives - TechRepublic
Security Archives - TechRepublic
Google Online Security Blog
Google Online Security Blog
D
Docker
H
Hacker News: Front Page
Recent Announcements
Recent Announcements
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
Security Latest
Security Latest
AI
AI
I
InfoQ
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
Attack and Defense Labs
Attack and Defense Labs
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Scott Helme
Scott Helme
N
News | PayPal Newsroom
Y
Y Combinator Blog
V
Visual Studio Blog
Latest news
Latest news
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
WordPress大学
WordPress大学
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
TaoSecurity Blog
TaoSecurity Blog
S
Security @ Cisco Blogs
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
T
Troy Hunt's Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Heimdal Security Blog
美团技术团队
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Security Affairs
T
Threat Research - Cisco Blogs
Webroot Blog
Webroot Blog
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
PowerShell 7 Taking 30+ Seconds to Open After Windows Update — Root Cause Found
J. Maurício V. L. Júnior (Maurício Júnior) · 2026-05-29 · via DEV Community

PowerShell 7 Taking 30+ Seconds to Open After Windows Update — Root Cause Found

A deep-dive diagnostic that led to an unexpected culprit: a corrupted Windows Terminal COM registration.


The Symptoms

After a Windows Update (KB5089549 / KB5087051, installed May 21, 2026), PowerShell 7 started taking 30–35 seconds to open — every single time, from any launcher: Win+R, Start Menu, Command Prompt, double-clicking pwsh.exe directly.

At the same time, Unicode characters in terminal tools (like Claude Code's ⏵⏵ status indicators) started showing as blank squares.

These seemed like two separate problems. They weren't.


What We Ruled Out

Before finding the real cause, we went through the usual suspects — all of which turned out to be dead ends:

Hypothesis Test Result
Heavy $PROFILE pwsh -NoProfile from Win+R Still 34s
Network paths in $PATH `$env:PATH -split ';' \ Where-Object { $_ -like '\*' }`
Windows Defender scanning Added exclusion for C:\Program Files\PowerShell\7 No change
SmartScreen / CRL check Tested in Airplane Mode Still 34s
Smart App Control Checked Windows Security Disabled
Memory Integrity (HVCI) Checked Core Isolation settings Disabled
Third-party antivirus None installed N/A
Store app (AppX) overhead Installed MSI version instead Still 34s
Windows Defender (full) Disabled real-time protection entirely Still 34s

Every classic explanation failed. Time for deeper tooling.


The Diagnostic: Process Monitor

Using Sysinternals Process Monitor (ProcMon), we captured all activity during a slow pwsh.exe launch and filtered by the process name.

The log revealed a striking pattern:

10:53:10  pwsh.exe   Thread Create       ← process starts
10:53:10  pwsh.exe   Load Image ntdll.dll
10:53:10  pwsh.exe   Load Image kernel32.dll
10:53:10  pwsh.exe   Load Image KernelBase.dll
10:53:10  pwsh.exe   Process Create → conhost.exe (PID 22716)
            ← NO ACTIVITY FOR 35 SECONDS →
10:53:45  pwsh.exe   Load Image sechost.dll
10:53:45  pwsh.exe   Load Image rpcrt4.dll
10:53:45  pwsh.exe   Load Image imm32.dll
            ← normal startup continues →

35 seconds of complete silence — no file I/O, no registry reads, no network calls. The process was alive (visible in Process Profiling entries) but fully blocked on something in memory.


Following the conhost Trail

The last operation before the freeze was pwsh.exe creating conhost.exe with PID 22716:

pwsh.exe → Process Create → \??\C:\WINDOWS\system32\conhost.exe 0xffffffff -ForceV1

Switching the ProcMon filter to conhost PID 22716 revealed exactly what it was doing during those 35 seconds:

HKCR\PackagedCom\Package\
  Microsoft.WindowsTerminal_1.24.11321.0_x64__8wekyb3d8bbwe\
    Server\0\ApplicationId        → "App"
    Server\0\DisplayName          → "OpenConsole"
    Server\0\Executable           → "OpenConsole.exe"
    Server\0\RuntimeBehavior      → 1
    ...

conhost was trying to activate Windows Terminal as its console host via COM. It found the package registration in the registry (HKCR\PackagedCom\Package\Microsoft.WindowsTerminal_*), attempted to activate OpenConsole.exe, got no response — and waited 35 seconds for the COM activation to timeout before falling back to legacy conhost mode.


The Root Cause

The Windows Update had corrupted the Windows Terminal package. The app appeared as "Installed" in the Microsoft Store, but the actual package was broken — OpenConsole.exe could not be activated.

This created a hidden failure loop:

Any console app starts (pwsh, cmd, etc.)
  → Windows creates conhost.exe
  → conhost checks for a registered terminal server
  → Finds Windows Terminal (Microsoft.WindowsTerminal_1.24.11321.0) in PackagedCom registry
  → Attempts COM activation of OpenConsole.exe
  → Package is broken → activation hangs
  → 35-second COM timeout fires
  → Falls back to legacy V1 conhost
  → Console app finally gets its window

This affected every console application on the system — not just PowerShell.

The Unicode rendering issue was a side effect: because Windows Terminal (which handles font fallback gracefully) was unavailable, the user was stuck with legacy conhost, which has no font fallback and can't render glyphs like (U+23F5) that aren't explicitly in the configured font.


The Fix

Quick workaround (stops the timeout immediately):

Settings → System → For Developers → Terminal → change from "Windows Terminal" to "Windows Console Host"

This tells conhost not to attempt Windows Terminal delegation, eliminating the 35-second COM timeout instantly.

Permanent fix (reinstall Windows Terminal cleanly):

# Remove the corrupted package
Get-AppxPackage -Name Microsoft.WindowsTerminal | Remove-AppxPackage

# Reinstall via winget
winget install --id Microsoft.WindowsTerminal -e

Then go back to Settings → System → For Developers → Terminal and set it back to Windows Terminal.

Result: PowerShell opens in under 1 second, Unicode renders correctly, everything back to normal.


Key Takeaways

1. ProcMon is indispensable for startup timing issues.
When all the usual suspects (Defender, SmartScreen, profile, PATH) are ruled out, the only way to find a 35-second gap with zero I/O is to look at the actual event trace.

2. "Installed" doesn't mean "working."
The Microsoft Store reported Windows Terminal as installed. The COM registration was intact. But the package was functionally broken. No UI-level tool would have surfaced this.

3. conhost delegates to Windows Terminal on every console app launch.
This is by design — it's how Windows Terminal integrates transparently with any console application. But it means a broken Windows Terminal silently degrades every console app on the system, not just Terminal itself.

4. Two seemingly unrelated symptoms, one root cause.
Slow startup and broken Unicode looked like separate issues. They were the same corrupted package viewed from different angles.


Environment

  • Windows 11 Pro 10.0.26200
  • PowerShell 7.6.2 (MSI, x64)
  • Windows Terminal 1.24.11321.0
  • Updates applied: KB5092762 (May 20), KB5089549 + KB5087051 (May 21, 2026)

Diagnosed with the help of Claude Code and Sysinternals Process Monitor.