File extension for PowerShell 3

ComFreek picture ComFreek · Aug 24, 2012 · Viewed 63.3k times · Source

All of us probably know .bat for Batch files.

But what is the file extension for PowerShell 3 scripts?

I found .ps1 and some other endings but they're only for version 1.

Answer

Mike Shepard picture Mike Shepard · Aug 24, 2012

PowerShell files for all versions are .ps1 (or .psm1, .psd1, etc.).