Skip to content

Add notes about TypeData and FormatData commands#13094

Open
sdwheeler wants to merge 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w588982-msrc106427
Open

Add notes about TypeData and FormatData commands#13094
sdwheeler wants to merge 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w588982-msrc106427

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Add notes about TypeData and FormatData commands

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings June 17, 2026 19:25
@sdwheeler sdwheeler requested a review from TravisEz13 June 17, 2026 19:27
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The 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 found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates PowerShell security documentation to warn that restricted remoting endpoints (including JEA) must not expose TypeData/FormatData modification commands because they can introduce FullLanguage-evaluated script content.

Changes:

  • Add new “Don’t allow commands that add TypeData or FormatData” guidance to two restricted-session security articles.
  • Add new warning callouts to Update-TypeData and Update-FormatData cmdlet reference docs.
  • Refresh ms.date metadata on the touched pages.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
reference/docs-conceptual/security/securing-restricted-sessions.md Adds guidance to block TypeData/FormatData-modifying commands in restricted sessions.
reference/docs-conceptual/security/remoting/jea/security-considerations.md Adds the same guidance in the JEA security considerations page.
reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md Adds a warning callout about restricted endpoints and Update-TypeData.
reference/7.4/Microsoft.PowerShell.Utility/Update-FormatData.md Adds a warning callout about restricted endpoints and Update-FormatData, and reflows the existing Notes text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread reference/docs-conceptual/security/securing-restricted-sessions.md
Comment thread reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit f2bb6f4:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Utility/Update-FormatData.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.4)
reference/docs-conceptual/security/remoting/jea/security-considerations.md ✅Succeeded View (>=powershell-5.1)
reference/docs-conceptual/security/securing-restricted-sessions.md ✅Succeeded View (>=powershell-5.1)

For more details, please refer to the build report.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The 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 found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 335452c:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Utility/Update-FormatData.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.4)
reference/docs-conceptual/security/remoting/jea/security-considerations.md ✅Succeeded View (>=powershell-5.1)
reference/docs-conceptual/security/securing-restricted-sessions.md ✅Succeeded View (>=powershell-5.1)

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants