Skip to content

Commit

Permalink
Fix [Bug]: Veeam.Backup.PowerShell 12 or higher is required to run th…
Browse files Browse the repository at this point in the history
…e Veeam VBR As Built Report. AsBuiltReport#187
  • Loading branch information
rebelinux committed Nov 5, 2024
1 parent abef958 commit 2fafae0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.Veeam.VBR {
.DESCRIPTION
Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.8.11
Version: 0.8.12
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -24,6 +24,8 @@ function Invoke-AsBuiltReport.Veeam.VBR {
#Requires -Version 5.1
#Requires -PSEdition Desktop
#Requires -RunAsAdministrator
#Requires -Modules @{ ModuleName="Veeam.Backup.PowerShell"; MaximumVersion="12.2.0.334" }


if ($psISE) {
Write-Error -Message "You cannot run this script inside the PowerShell ISE. Please execute it from the PowerShell Command Window."
Expand Down Expand Up @@ -90,7 +92,6 @@ function Invoke-AsBuiltReport.Veeam.VBR {
if (Select-String -InputObject $System -Pattern "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$") {
throw "Please use the FQDN instead of an IP address to connect to the Backup Server: $System"
}
Get-AbrVbrRequiredModule -Name 'Veeam.Backup.PowerShell' -Version '12'
Get-AbrVbrServerConnection
$VeeamBackupServer = ((Get-VBRServerSession).Server).ToString().ToUpper().Split(".")[0]
$script:VbrLicenses = Get-VBRInstalledLicense
Expand Down

0 comments on commit 2fafae0

Please sign in to comment.