[Bug]: Detect-SecureBootCertUpdateStatus.ps1 fails on valid OutputPath
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- powershell
- 领域
- security
调研方向
首先在 C:\Windows\SecureBoot\ExampleRolloutScripts 下定位 Detect-SecureBootCertUpdateStatus.ps1,并注意 issue 表明它尚未位于此 repository 中。阅读 OutputPath 验证,并在 Windows 上复现 report 中的两个命令。当接受类似 C:\Temp\SecureBootTest 的驱动器号路径并写入预期的 JSON 文件时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue for this?
- I have searched existing issues
Current Behavior
I hope issues regarding C:\Windows\SecureBoot\ExampleRolloutScripts belong here.
If not, could you point me to the right team?
Local Testing (Sample Secure Boot E2E Automation Guide) instructs to test the script locally using following command:
& .\Detect-SecureBootCertUpdateStatus.ps1 -OutputPath "C:\Temp\SecureBootTest"`
Result: Invalid OutputPath specified, outputting to stdout
Cause: Detect-SecureBootCertUpdateStatus.ps1 does not accept filepaths that include :, like C:\
# Validate OutputPath - skip if it looks like a help request or has invalid chars
if ($OutputPath -match '^[/\-]' -or $OutputPath -match '[<>:"|?*]') {
Write-Host "Invalid OutputPath specified, outputting to stdout" -ForegroundColor Yellow
Replacing the path C:\ with \\localhost\c$\ is accepted and generates the correct JSON file.
Expected Behavior
A valid OutputPath should be accepted and generate the JSON output.
& .\Detect-SecureBootCertUpdateStatus.ps1 -OutputPath "C:\Temp\SecureBootTest"`
Should Result: JSON saved to: C:\Temp\SecureBootTest\{Redacted}_latest.json
Steps To Reproduce
Current Workaround
cd C:\Windows\SecureBoot\ExampleRolloutScripts\
& .\Detect-SecureBootCertUpdateStatus.ps1 -OutputPath "C:\Temp\SecureBootTest"
& .\Detect-SecureBootCertUpdateStatus.ps1 -OutputPath "\\localhost\c$\Temp\SecureBootTest"
Result 1: Invalid OutputPath specified, outputting to stdout
Result 2: JSON saved to: \\localhost\c$\Temp\SecureBootTest\{Redacted}_latest.json
Build Environment
- OS(s): Windows 11 25H2 (Build 26200.8457) - May 12, 2026
Version Information
'C:\Windows\SecureBoot\ExampleRolloutScripts' not part of this repository yet.
Urgency
Low
Are you going to fix this?
Someone else needs to fix it
Do you need maintainer feedback?
No maintainer feedback needed
Anything else?
No response
- 主要语言
- Python
- 星标
- 289
- 派生
- 89
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 4
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/secureboot_objects 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/secureboot_objects#471 ·
-
state:needs-owner state:needs-triage type:bug urgency:high
难度 4/5 3-5 天 新手友好度 55/100
microsoft/secureboot_objects#467 · 3 条评论 ·
-
state:needs-triage type:feature-request urgency:low
难度 3/5 1-2 天 新手友好度 55/100
microsoft/secureboot_objects#466 ·
-
state:needs-triage type:feature-request urgency:low
难度 4/5 3-5 天 新手友好度 48/100
microsoft/secureboot_objects#462 · 3 条评论 ·
-
state:needs-owner state:needs-triage type:bug urgency:low
难度 3/5 1-2 天 新手友好度 68/100
microsoft/secureboot_objects#424 · 6 条评论 ·
查看 microsoft/secureboot_objects 的全部 Issue
相似的 Issue
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31098 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
难度 1/5 1 小时以内 新手友好度 88/100
NousResearch/hermes-agent#132042 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepset-ai/haystack#13092 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
feder-cr/invisible_playwright_mcp#1408 ·
维护者通常 1 天内回复