if($Script:DryRun)
This commit is contained in:
@@ -45,6 +45,11 @@ param(
|
||||
############################################################
|
||||
# Globale Variablen
|
||||
############################################################
|
||||
############################################################
|
||||
# Globale Zustände
|
||||
############################################################
|
||||
|
||||
$Script:DryRun = $false
|
||||
|
||||
$Script:InstallerRoot =
|
||||
|
||||
@@ -378,7 +383,7 @@ function Install-VeeamProduct {
|
||||
|
||||
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
return (
|
||||
@@ -426,7 +431,7 @@ function Initialize-BackupRepository {
|
||||
|
||||
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
return (
|
||||
@@ -469,7 +474,7 @@ function Initialize-BackupJobs
|
||||
|
||||
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
return (
|
||||
@@ -538,7 +543,7 @@ function Start-VeeamEnterpriseInstall {
|
||||
|
||||
$Configuration = Get-InstallerConfiguration
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
Write-Host ""
|
||||
@@ -625,7 +630,7 @@ function Get-EnterpriseInstallationReport {
|
||||
|
||||
Mode =
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
"DryRun"
|
||||
@@ -795,7 +800,7 @@ try
|
||||
|
||||
|
||||
|
||||
if($DryRun)
|
||||
if($Script:DryRun)
|
||||
{
|
||||
|
||||
Enable-DryRunMode
|
||||
|
||||
Reference in New Issue
Block a user