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()