diff --git a/Custom Protocols/Run-PackageID.ps1 b/Custom Protocols/Run-PackageID.ps1 deleted file mode 100644 index a3fe297..0000000 --- a/Custom Protocols/Run-PackageID.ps1 +++ /dev/null @@ -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) \ No newline at end of file