Repository navigation
Use .ps1 in Get-AuthenticodeSignature Example 4 - #13411
Benedek Brandschott (brabema) wants to merge 2 commits into
Conversation
|
Benedek Brandschott (@brabema) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the versioned documentation example corrections.
No open issues 🎉
What changed in this PR
Corrects the byte-content signature example in the versioned Get-AuthenticodeSignature documentation for Windows PowerShell 5.1 and PowerShell 7.4–7.6.
Changes:
- Changes
"ps1"to".ps1"soSourcePathOrExtensionreceives the dotted script extension. - Aligns the parameter name’s capitalization with the documented
SourcePathOrExtensionspelling.
| File | Description |
|---|---|
| reference/7.6/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md | Corrects the extension and parameter capitalization in Example 4 for 7.6. |
| reference/7.5/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md | Applies the same Example 4 correction for 7.5. |
| reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md | Applies the same Example 4 correction for 7.4. |
| reference/5.1/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md | Applies the same Example 4 correction for Windows PowerShell 5.1. |
Review effort: Balanced
|
Learn Build status updates of commit e1c7392: ✅ Validation status: passed
For more details, please refer to the build report. |
|
@microsoft-github-policy-service agree |
PR Summary
Add the leading period to the
.ps1extension passed toSourcePathOrExtensionin Example 4 for Windows PowerShell 5.1 and PowerShell 7.4, 7.5, and 7.6. Use the documented capitalization of the parameter on that line.On PowerShell 7.6.9 on Windows, the signed
SamplePSReadLineProfile.ps1returnedValidby path. For the same bytes,"ps1"returnedNotSignedand".ps1"returnedValidwith the same signer certificate as the path-based check.Related discussion: PowerShell/PowerShell#18773 and #3408.
PR Checklist