Share PowerShell code with CodeThis
PowerShell on Windows, macOS, and Linux. Share cmdlets, pipelines, and automation scripts.
Paste PowerShell nowWhat you get
- PowerShell-aware syntax highlighting via CodeMirror
- Instant shareable link — no signup required
- Optional expiration (7 days, 30 days, permanent)
- Password protection for private pastes
- Works with the REST API and MCP server
- Rich markdown and MDC components alongside code
Common use cases for PowerShell pastes
- Windows admin scripts
- Azure automation
- Cross-platform tooling
- CI/CD on Windows runners
Example
Get-ChildItem -Path . -Recurse -Include *.log |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-7) } |
Remove-Item -WhatIf
Related languages
Ready to share some PowerShell?