From 32087d9d28b173c9f662bd3bbd03f9461995447a Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 27 Jan 2021 14:40:04 +0100 Subject: [PATCH] Fix parameters --- scripts/ADDS/payload/Apply-OVFProperties.ps1 | 2 +- scripts/Update-OvfConfiguration.ps1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ADDS/payload/Apply-OVFProperties.ps1 b/scripts/ADDS/payload/Apply-OVFProperties.ps1 index f189b7f..73b83f9 100644 --- a/scripts/ADDS/payload/Apply-OVFProperties.ps1 +++ b/scripts/ADDS/payload/Apply-OVFProperties.ps1 @@ -332,7 +332,7 @@ $WriteEventLogSplat = @{ Write-EventLog @WriteEventLogSplat & schtasks.exe /Change /TN 'OVF-Properties' /DISABLE -Function New-ToastNotification () { +Function New-ToastNotification { Param( [Parameter] [string]$Stream = 'OVF Properties', diff --git a/scripts/Update-OvfConfiguration.ps1 b/scripts/Update-OvfConfiguration.ps1 index fd731de..1789676 100644 --- a/scripts/Update-OvfConfiguration.ps1 +++ b/scripts/Update-OvfConfiguration.ps1 @@ -9,7 +9,8 @@ Param( Throw "'$_' is not a valid filename (within working directory '$PWD'), or access denied; aborting." } })] - [string]$OVFFile + [string]$OVFFile, + [hashtable]$Parameter ) $GetContentSplat = @{