[Bug]: Detect-SecureBootCertUpdateStatus.ps1 fails on valid OutputPath
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell
- Ambito
- security
Direzione di ricerca
Inizia individuando Detect-SecureBootCertUpdateStatus.ps1 in C:\Windows\SecureBoot\ExampleRolloutScripts, tenendo presente che l'issue indica che non si trova ancora in questo repository. Leggi la validazione di OutputPath ed esegui nuovamente entrambi i comandi del report su Windows. L'attività è completata quando viene accettato un percorso con lettera di unità come C:\Temp\SecureBootTest e viene scritto il file JSON previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 289
- Fork
- 89
- Merge medio
- 3g 10h
- PR unite (30g)
- 7
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/secureboot_objects
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
microsoft/secureboot_objects#471 ·
-
state:needs-owner state:needs-triage type:bug urgency:high
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
microsoft/secureboot_objects#467 · 3 commenti ·
-
state:needs-triage type:feature-request urgency:low
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoft/secureboot_objects#466 ·
-
state:needs-triage type:feature-request urgency:low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
microsoft/secureboot_objects#462 · 3 commenti ·
-
state:needs-owner state:needs-triage type:bug urgency:low
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
microsoft/secureboot_objects#424 · 6 commenti ·
Tutte le issue di microsoft/secureboot_objects
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
use-agent-os/agent-os#3314 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
BasedHardware/omi#15662 · 1 commento ·
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
AiursoftWeb/AnduinOS-2#19 ·