This commit is contained in:
Madzone
2026-08-10 22:07:47 +02:00
parent 9b76c4c61b
commit 44b1ef0142
2 changed files with 8 additions and 53 deletions
@@ -1109,58 +1109,7 @@ function Test-ConfigurationIntegrity {
return $true
}
############################################################
# Get-VeeamConfig
############################################################
function Get-VeeamConfig {
<#
.SYNOPSIS
Lädt zentrale Veeam Konfiguration aus JSON.
#>
param(
[string]$Path = (Join-Path ( Split-Path $PSScriptRoot -Parent )"Config\VeeamConfig.json")
)
if(!(Test-Path $Path))
{
throw `
"Konfigurationsdatei nicht gefunden: $Path"
}
$Content =
Get-Content `
-Path $Path `
-Raw
$Configuration =
$Content |
ConvertFrom-Json
return $Configuration
}