[Bug]: Detect-SecureBootCertUpdateStatus.ps1 fails on valid OutputPath

オープン
#419 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
powershell
領域
security

調査の方向性

まず C:\Windows\SecureBoot\ExampleRolloutScripts にある Detect-SecureBootCertUpdateStatus.ps1 を探し、issue にはまだこの repository に存在しないと記載されていることを確認します。OutputPath の検証を読み、report にある両方のコマンドを Windows で再現します。C:\Temp\SecureBootTest のようなドライブレター付きのパスが受け入れられ、期待される JSON ファイルが書き込まれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

state:backlog state:needs-owner state:needs-triage type:bug urgency:low
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
平均マージ
3日 10時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/secureboot_objects のほかの issue

microsoft/secureboot_objects の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。