mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
fix(veeam): snap registred (#3151)
This commit is contained in:
parent
a9fde00911
commit
0c9f5c1ab0
@ -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…
x
Reference in New Issue
Block a user