Created
February 12, 2023 11:42
-
-
Save jhoek/4c411b5d1ef263da5993cb45ed0ccbc8 to your computer and use it in GitHub Desktop.
Get-BcVersionInfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-BCVersionInfo | |
{ | |
[Alias('Get-NavVersionInfo')] | |
param | |
( | |
) | |
function New-NavVersionInfo | |
{ | |
param | |
( | |
[Parameter(Mandatory, Position = 0)] | |
[string]$ProductName, | |
[Parameter(Mandatory, Position = 1)] | |
[Version]$Version, | |
[Parameter()] | |
[string]$CommercialVersion, | |
[Parameter()] | |
[string]$CodeName, | |
[Parameter()] | |
[int]$YearReleased | |
) | |
[PSCustomObject]@{ | |
PSTypeName = 'BcVersionInfo' | |
YearReleased = $YearReleased | |
ProductName = $ProductName | |
Version = $Version | |
CommercialVersion = $CommercialVersion ?? $Version | |
} | |
} | |
# FIXME: More data! | |
New-NavVersionInfo 'Navision Financials' 1.00 -YearReleased 1995 | |
New-NavVersionInfo 'Navision Financials' 1.10 -YearReleased 1996 | |
New-NavVersionInfo 'Navision Financials' 1.20 -YearReleased 1997 | |
New-NavVersionInfo 'Navision Financials' 1.30 | |
New-NavVersionInfo 'Navision Solutions' 3.00 -YearReleased 2000 | |
New-NavVersionInfo 'Microsoft Business Solutions Navision' 3.70 | |
New-NavVersionInfo 'Microsoft Dynamics NAV' 6.00 -CommercialVersion 2009 | |
New-NavVersionInfo 'Microsoft Dynamics NAV' 11.00 -CommercialVersion 2018 | |
New-NavVersionInfo 'Microsoft Dynamics NAV' 12.00 -CommercialVersion '2018 R2' | |
New-NavVersionInfo 'Microsoft Dynamics 365 Business Central' 17.00 -CommercialVersion '2020 Wave 2' | |
New-NavVersionInfo 'Microsoft Dynamics 365 Business Central' 18.00 -CommercialVersion '2021 Wave 1' | |
New-NavVersionInfo 'Microsoft Dynamics 365 Business Central' 19.00 -CommercialVersion '2021 Wave 2' | |
} | |
Get-BCVersionInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment