Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Windows Dev Config: Disable Widget service errors on fresh Windows 11 PC

已关闭
#109 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 8 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
powershell

调研方向

Start by reproducing the report on Windows 11 25H2 and inspect _registry.ps1 at line 43, then trace the phase 5 widget-service step. Review the phase 2 package checks and winget install handling using the reported Microsoft.WindowsTerminal failure. Done means a fresh setup no longer aborts at the widget step and package checks do not repeatedly fail with the reported error.

由索引模型根据 Issue 内容生成。

描述

winver: Version 25H2 (OS Build 26200.9550)

I have freshly built a new Windows 11 PC, installed updates etc, then tried to run:

$url = 'https://raw.githubusercontent.com/microsoft/WindowsDeveloperConfig/main/src/windows-dev-config/bootstrap.ps1'
& ([scriptblock]::Create((irm $url))) -AllowUnsigned

This first 4 phases work as expected. During phase 5 it aborts on Disable Widget service.

Phase 5/11 -- Taskbar, search & start tweaks
  Checking what's already set up...
  ✓ DoNotDisturb           already OK
  ✓ BluetoothOff           already OK
  ✓ EndTask                already OK
  ✓ WebSearchOff           already OK
  ✓ SearchHighlightOff     already OK
  ✓ StartRecommendations   already OK
  -> Disable Widget service...

Calm OS setup stopped early.
  Attempted to perform an unauthorized operation.
  (_registry.ps1 line 43)
  Nothing already applied was undone -- running this again picks up where it left off.
  Full log: C:\ProgramData\CalmOS\devconfig-log.txt

Press any key to close this window... (closes on its own in 15 minutes if you step away)

I rerun the same command and then get errors in phase 2, this is repeated for all packages, showing only Microsoft.WindowsTerminal as an example.

Phase 2/11 -- Packages
  Checking what's already set up...
  ? Terminal: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? PowerShell: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? Git: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? GitHubCLI: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? GitHubCopilot: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? VSCode: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? DotnetSdk: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? Python: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? UV: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? NodeJS: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? nvmForNode: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? Coreutils: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? OhMyPosh: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? winappCli: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.
  ? PowerToys: couldn't tell whether this was already done (Failed to create instance: -2147023174); doing it anyway.

  -> winget install Microsoft.WindowsTerminal...
  ... winget install Microsoft.WindowsTerminal didn't take on attempt 1 (Failed to create instance: -2147023174). Trying again in 5s.
  ... winget install Microsoft.WindowsTerminal didn't take on attempt 2 (Failed to create instance: -2147023174). Trying again in 10s.
  ! Terminal               flagged
    Failed to create instance: -2147023174 (best-effort step, continuing)

I cannot share the original C:\ProgramData\CalmOS\devconfig-log.txt as a rerun overwrites the log file. Log header below.

**********************
PowerShell transcript start
Start time: 20260924094436
Username: DESKTOP-name\username
RunAs User: DESKTOP-name\username
Configuration Name: 
Machine: DESKTOP-ADG7CG0 (Microsoft Windows NT 10.0.26200.0)
Host Application: C:\Program Files\WindowsApps\Microsoft.PowerShell_7.6.6.0_x64__8wekyb3d8bbwe\pwsh.dll -NoProfile -File C:\ProgramData\CalmOS\dev-config.ps1 -NoElevate -AllowUnsigned
Process ID: 21088
PSVersion: 7.6.6
PSEdition: Core
GitCommitId: 7.6.6
OS: Microsoft Windows 10.0.26200
Platform: Win32NT
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1, 6.0, 7.0
PSRemotingProtocolVersion: 2.4
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0
**********************

Calm OS setup -- 11 phases, one reboot along the way (expected, not an error)
主要语言
PowerShell
星标
2.2k
派生
168
平均合并
7 小时 16 分钟
30 天内合并 PR
11

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/WindowsDeveloperConfig 的其他 Issue

查看 microsoft/WindowsDeveloperConfig 的全部 Issue

相似的 Issue

更多 Operating Systems Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。