Delete Run-PackageID.ps1

This commit is contained in:
Martin Bengtsson 2020-08-22 20:40:34 +02:00 committed by GitHub
parent dbce494fc1
commit 7b8e38f51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +0,0 @@
<#
.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)