[Bug]: Detect-SecureBootCertUpdateStatus.ps1 fails on valid OutputPath
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell
- Lĩnh vực
- security
Hướng nghiên cứu
Bắt đầu bằng cách tìm Detect-SecureBootCertUpdateStatus.ps1 trong C:\Windows\SecureBoot\ExampleRolloutScripts, lưu ý rằng issue cho biết tệp này chưa có trong repository này. Đọc phần xác thực OutputPath và chạy lại cả hai lệnh trong report trên Windows. Được xem là hoàn tất khi một đường dẫn có ký tự ổ đĩa như C:\Temp\SecureBootTest được chấp nhận và tệp JSON mong đợi được ghi ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 289
- Fork
- 89
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 7
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/secureboot_objects
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/secureboot_objects#471 ·
-
state:needs-owner state:needs-triage type:bug urgency:high
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
microsoft/secureboot_objects#467 · 3 bình luận ·
-
state:needs-triage type:feature-request urgency:low
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
microsoft/secureboot_objects#466 ·
-
state:needs-triage type:feature-request urgency:low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/secureboot_objects#462 · 3 bình luận ·
-
state:needs-owner state:needs-triage type:bug urgency:low
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/secureboot_objects#424 · 6 bình luận ·
Tất cả issue của microsoft/secureboot_objects
Issue tương tự
-
triage/confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100