.ps1

What is a .ps1 file?

PS1 is a PowerShell script — Microsoft's modern shell for Windows system management, automation, and cloud operations.

Use caution
Type Code
By Microsoft
MIME application/x-powershell

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

You have a .ps1 file — a PowerShell script. If .bat files are DOS-era duct tape, PowerShell is the precision engineering that replaced it. PowerShell works with structured objects instead of plain text, can manage Windows systems, Azure cloud resources, Active Directory, and Exchange — essentially anything in Microsoft's ecosystem.

Microsoft released PowerShell in 2006, and it has evolved from a Windows-only tool into a cross-platform shell (PowerShell 7 runs on Linux and macOS too). The key insight is that PowerShell commands (cmdlets) pass .NET objects between them, not text strings. When you pipe `Get-Process | Where-Object { $_.CPU -gt 100 }`, you're filtering actual process objects, not parsing grep output. This makes complex automation dramatically more reliable.

PowerShell (pre-installed on Windows) runs .ps1 files. VS Code with the PowerShell extension is the recommended editor. By default, Windows blocks script execution (the ExecutionPolicy is set to Restricted). Run `Set-ExecutionPolicy RemoteSigned` in an admin PowerShell to allow local scripts. As with any script format, only run .ps1 files from trusted sources.

Technical details
Full Name
PowerShell Script
MIME Type
application/x-powershell
Developer
Microsoft
Magic Bytes
N/A
Safety
.ps1 requires caution. PowerShell scripts can execute any system command with elevated privileges. Never run from untrusted sources.
What opens it
PowerShell (execute)
FREE Windows / macOS / Linux
VS Code
FREE All
FAQ
What's the difference between PowerShell and Command Prompt?
Command Prompt (cmd.exe) runs legacy .bat scripts and basic commands. PowerShell is a modern shell with object-oriented pipelines, .NET integration, and rich scripting capabilities. For anything beyond the simplest tasks, use PowerShell.
Can I run PowerShell scripts on Mac or Linux?
Yes. PowerShell 7 (pwsh) is cross-platform. Install via Homebrew on macOS (`brew install powershell`) or your package manager on Linux. Core cmdlets work everywhere; Windows-specific cmdlets (Active Directory, etc.) are Windows-only.
Related formats