~/talk

Lost in Translation: the many language modes of PowerShell

Talkat PowerShell + DevOps Global Summit 2026 · 2026-04-13..04-16· [security]
slides:none on file

Explains that PowerShell enforces four modes — Full Language Mode, Constrained Language Mode, Restricted and No mode — and shows concrete failures: Cannot invoke method from blocked non‑core .NET types, Add‑Type and PSCustomObject cast failures, and dot‑sourcing being rejected. Describes enforcement via Application Control/WDAC/AppLocker, practical fixes (use Expand‑Archive, Invoke‑RestMethod, rename PS1→PSM1, sign code), tooling (PSRule/agents.md for LLMs, PSScriptAnalyzer constrained‑language rule v1.25+, Pester runspaces) and Azure Artifact Signing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47PowerShell language modes
  3. 3:12Language modes and security
  4. 5:42Full vs constrained language mode
  5. 7:48Enforcing constrained language mode
  6. 11:15Checking constrained language mode
  7. 12:22Errors in constrained language mode
  8. 13:04Cannot invoke method errors
  9. 15:33Dotsourcing and module loading
  10. 19:11Loading non-core types
  11. 21:19Add-type restrictions
  12. 22:41Custom object type issues
  13. 25:07Type conversion restrictions
  14. 27:13AI tools for constrained mode
  15. 31:05AI agent for code compliance
  16. 35:20Linting with PSScriptAnalyzer
  17. 37:30Testing in constrained mode
  18. 40:05Pester tests for constrained mode
  19. 42:10Signing PowerShell code
  20. 45:03Best practices for modules
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.