fix(veeam): snap registred (#3151)
This commit is contained in:
parent
eef4731d79
commit
e02119ce32
|
@ -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
|
||||
}
|
||||
}
|
||||
';
|
||||
|
||||
|
|
Loading…
Reference in New Issue