From 86809640b45978d6e21e041fcaa65be4b8286301 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 27 Jan 2021 16:06:20 +0100 Subject: [PATCH] Fix parameter and item type declaration --- scripts/ADDS/payload/Apply-OVFProperties.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ADDS/payload/Apply-OVFProperties.ps1 b/scripts/ADDS/payload/Apply-OVFProperties.ps1 index dd57a3e..dd2a343 100644 --- a/scripts/ADDS/payload/Apply-OVFProperties.ps1 +++ b/scripts/ADDS/payload/Apply-OVFProperties.ps1 @@ -6,7 +6,7 @@ Param( Function New-ToastNotification { Param( - [Parameter] + [Parameter()] [string]$Stream = 'OVF Properties', [Parameter(Mandatory)] [string]$Title, @@ -14,6 +14,7 @@ Function New-ToastNotification { [string]$Text ) + [void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] $Template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02) $XML = [xml]$Template.GetXml()