fix(veeam): snap registred (#3151)

This commit is contained in:
qgarnier 2021-09-28 14:29:53 +02:00 committed by GitHub
parent eef4731d79
commit e02119ce32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -48,16 +48,11 @@ if ($registered -eq 0) {
if (@(Get-Module | Where-Object {$_.Name -Match "Veeam.Backup.PowerShell"} ).count -eq 0) {
Try {
Import-Module -DisableNameChecking -Name "Veeam.Backup.PowerShell"
$registered=1
} Catch {
Write-Host $Error[0].Exception
exit 1
}
}
if ($registered -eq 0) {
Write-Host "Snap-In/Module Veeam no present or not registered"
exit 1
}
}
';