Version 1.2.a

This commit is contained in:
Madzone
2026-08-11 09:56:54 +02:00
parent 7f2eadf99f
commit fc892a39f4
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
},
"SQL": {
"Server": "SERVER01",
"Server": "Auto",
"Instance": "VEEAMSQLSERVER",
"Database": "VeeamBackup"
},
+11
View File
@@ -213,6 +213,17 @@ function Get-InstallerConfiguration {
}
if([string]$Config.SQL.Server -eq "Auto")
{
if([string]::IsNullOrWhiteSpace($env:COMPUTERNAME))
{
throw "Der lokale Windows-Hostname konnte nicht ermittelt werden."
}
$Config.SQL.Server = $env:COMPUTERNAME
}
$Validation =
Test-VeeamConfiguration `
-Configuration $Config