Add files via upload

This commit is contained in:
Martin Bengtsson 2020-07-03 21:29:26 +02:00 committed by GitHub
parent f1877e048a
commit fc083ceaba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Script used to execute packages and task sequences directly from my Windows 10 Toast Notification Script
.NOTES
Filename: Run-PackageID.ps1
Version: 1.0
Author: Martin Bengtsson
Blog: www.imab.dk
Twitter: @mwbengtsson
.LINKS
https://www.imab.dk/windows-10-toast-notification-script
#>
$RegistryPath = "HKCU:\SOFTWARE\ToastNotificationScript"
$PackageID = (Get-ItemProperty -Path $RegistryPath -Name "RunPackageID").RunPackageID
$SoftwareCenter = New-Object -ComObject "UIResource.UIResourceMgr"
$ProgramID = "*"
$SoftwareCenter.ExecuteProgram($ProgramID,$PackageID,$true)