.ps1
High riskPowerShell script
A PowerShell script. Used for Windows administration, server operations, and DevOps pipelines.
MIME types
- application/powershell
- text/plain
Category
executable
What opens this file
- PowerShell
- PowerShell ISE
- VS Code + PowerShell extension
How to open by OS
Windows
- PowerShell 5.1 ships with Windows; PowerShell 7 installs separately.
Mac
- PowerShell Core 7 (Rosetta for Apple Silicon until native build).
Linux
- PowerShell Core 7 packages.
Ios
- Cannot run.
Android
- Cannot run.
Safety notes
- PowerShell talks directly to the OS API and is a favourite of malware campaigns. Don't casually relax policy to run unknown scripts.
- Combine Constrained Language Mode with JEA to narrow privileges for production hosts.
Common mistakes
- Habitually using
-ExecutionPolicy Bypassdisables signature verification and typically violates organisational policy. - Confusing
.ps1scripts with.psm1modules — the import path differs.