Powered by GeSHi

Source code for psver.ps1

(view source code of psver.ps1 as plain text)

  1. # Get PowerShell executable file version
  2.  
  3. $PsVer = ( Get-command PowerShell ).FileVersionInfo.ProductVersion
  4. Write-Host "PowerShell Version $PsVer"
  5.