Query Veeam Version

PowerShell script exchange

Query Veeam Version

Veeam Logoby Talom » Thu Oct 29, 2015 9:55 am

Hi,
i have just a simple request. I want to query the actual Veeam Version with Powershell. Is there a Powershell Command for it or is it possible to query it from DB directly?
I found nothing in the reference and also in the forum.
Talom
Influencer
 
Posts: 13
Liked: 1 time
Joined: Tue Oct 21, 2014 7:56 am

Re: Query Veeam Version

Veeam Logoby PTide » Thu Oct 29, 2015 10:56 am 1 person likes this post

Hi,

Please try this piece of code

(Get-PSSnapin VeeamPSSnapin).Version

Thank you.
PTide
Veeam Software
 
Posts: 3019
Liked: 246 times
Joined: Tue May 19, 2015 1:46 pm

Re: Query Veeam Version

Veeam Logoby Talom » Tue Nov 03, 2015 1:04 pm

thx, so simple...
this should cover all my needs.
I checked the powershell output against Versionoutput from Veeam B&R GUI and they are different Powershell: 8.0.0.0 and GUI:8.0.0.2021
Talom
Influencer
 
Posts: 13
Liked: 1 time
Joined: Tue Oct 21, 2014 7:56 am

Re: Query Veeam Version

Veeam Logoby PTide » Tue Nov 03, 2015 2:07 pm 1 person likes this post

If you need an exact version (including build) please use the following code:

Code: Select all
$corePath = Get-ItemProperty -Path "HKLM:\Software\Veeam\Veeam Backup and Replication\" -Name "CorePath"
$depDLLPath = Join-Path -Path $corePath.CorePath -ChildPath "Packages\VeeamDeploymentDll.dll" -Resolve
$file = Get-Item -Path $depDLLPath
$version = $file.VersionInfo.ProductVersion
PTide
Veeam Software
 
Posts: 3019
Liked: 246 times
Joined: Tue May 19, 2015 1:46 pm

[MERGED] Check Veeam Version

Veeam Logoby Gve » Mon Aug 22, 2016 1:01 pm

Hello
How it s possible to read the Veeam Server Version with powershell ?
I would like to know if it's V8 ou V9, and the update version (0-2)

If it's not possible in powershell how can we do that (registry ?) ?

Regards
Gve
Service Provider
 
Posts: 25
Liked: never
Joined: Tue Apr 28, 2015 3:28 pm
Location: France
Full Name: Guillaume


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests