.ps1 PowerShell script

Text & source code

MIME typeapplication/x-powershell
DescriptionPowerShell script
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .ps1 file?

A .ps1 file is a “PowerShell script” (MIME type application/x-powershell).

How do I open a .ps1 file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .ps1 file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.ps1 shows the guessed type.

Which format is .ps1 based on?

Technically a .ps1 file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .ps1?

The MIME type is application/x-powershell. In the Apache web server: AddType application/x-powershell .ps1; in nginx: types { application/x-powershell ps1; }.

Nearby entries