# encoding: ascii
# api: powershell
# title: Get-PSVersion
# description: Simple Function to get powershell version
# version: 0.1
# type: function
# author: Powershell Jedi
# license: CC0
# function: Get-PSVersion
# x-poshcode-id: 4413
# x-derived-from-id: 4415
# x-archived: 2015-03-03T16:19:44
# x-published: 2015-08-21T17:40:00
#
#
Set-Alias Ver Get-PSVersion
function Get-PSVersion
{
[string]$Major = ($PSVersionTable).PSVersion.Major
[string]$Minor = ($PSVersionTable).PSVersion.Minor
[string]$Out = $Major + '.' + $Minor
Write-Output $Out
}
