PowerShell script exchange
Post Reply
jcolonfzenpr
Veeam Vanguard
Posts: 43
Liked: 31 times
Joined: Dec 30, 2021 1:16 am
Full Name: Jonathan Colon
Location: Puerto Rico
Contact:

Version of installed Veeam Powershell modules

Post by jcolonfzenpr »

Hi,

Is there any way to establish which version of the Veeam powershell modules are installed?

Currently I run the command "Get-Module -ListAvailable Veeam.Backup.PowerShell" and I see no way to distinguish between v11 and v12.

V12 installation:

Code: Select all

PS C:\Users\administrator> Get-Module -ListAvailable Veeam.Backup.PowerShell | Format-List

Name              : Veeam.Backup.PowerShell
Path              : C:\Program Files\Veeam\Backup and
                    Replication\Console\Veeam.Backup.PowerShell\Veeam.Backup.PowerShell.psd1
Description       : Provides Veeam cmdlets to work with "Veeam Backup And Replication".
ModuleType        : Manifest
Version           : 1.0
NestedModules     : {Veeam.Backup.PowerShell}
ExportedFunctions :
ExportedCmdlets   : {Add-VBRBackupCopyJob, Get-VBRBackupCopyJob, Set-VBRBackupCopyJob, Copy-VBRBackupCopyJob...}
ExportedVariables :
ExportedAliases   : {Set-VBRGFSYearlyOptions, Set-VBRGFSWeeklyOptions, Set-VBRGFSMonthlyOptions, Set-VBRGFSOptions...}

PS C:\Users\administrator>
V11 installation:

Code: Select all

PS C:\Users\jocolon> Get-Module -ListAvailable Veeam.Backup.PowerShell | Format-List

Name              : Veeam.Backup.PowerShell
Path              : C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell\Veeam.Backup.PowerShell.psd1
Description       : Provides Veeam cmdlets to work with "Veeam Backup And Replication".
ModuleType        : Manifest
Version           : 1.0
NestedModules     : {Veeam.Backup.PowerShell}
ExportedFunctions :
ExportedCmdlets   : {Get-VBRComputerFileProxyServer, New-VBRSanIntegrationOptions, New-VBRSelectedPersonalFolders, New-VBRUnixScheduleOptions...}
ExportedVariables :
ExportedAliases   : {Set-VBRHPStorage, Add-VBRHPSnapshot, Add-VBRHPStorage, Get-VBRHPCluster...}

PS C:\Users\jocolon>
Any help would be appreciated.

Regards
Jonathan Colon
https://techmyth.blog/
Mildur
Product Manager
Posts: 9822
Liked: 2598 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Version of installed Veeam Powershell modules

Post by Mildur » 1 person likes this post

Hello Jonathan

Can you try to get the version from the nested dll file?

Code: Select all

( (Get-Item "C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll").VersionInfo | select OriginalFilename,FileVersionRaw,Comments
Image
Image

Best,
Fabian
Product Management Analyst @ Veeam Software
Herbert Sz
Veteran
Posts: 1045
Liked: 209 times
Joined: Oct 02, 2017 7:28 pm
Full Name: Herbert Szumovski
Contact:

Re: Version of installed Veeam Powershell modules

Post by Herbert Sz »

Though this is nice, thanks, it would be preferable, if the Get-module command would show the FileversionRaw content in the "Version" field.
This is the first place one would look for it.
Mildur
Product Manager
Posts: 9822
Liked: 2598 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Version of installed Veeam Powershell modules

Post by Mildur » 1 person likes this post

@Herbert Sz
Already discussing it internally :)

Best,
Fabian
Product Management Analyst @ Veeam Software
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Version of installed Veeam Powershell modules

Post by oleg.feoktistov » 1 person likes this post

I think adding product version to the version field in the module info would make much more sense than having this const version 1.0. So thanks guys, noted for future releases!
jcolonfzenpr
Veeam Vanguard
Posts: 43
Liked: 31 times
Joined: Dec 30, 2021 1:16 am
Full Name: Jonathan Colon
Location: Puerto Rico
Contact:

Re: Version of installed Veeam Powershell modules

Post by jcolonfzenpr »

While developing the asbuiltreport.veeam.vbr report I needed a way to filter out certain content that only applies to the v12 release.

Thank you this workaround meets my needs.
(Get-Item "C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll").VersionInfo.ProductVersion
Jonathan Colon
https://techmyth.blog/
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests