Delete Run-PackageID.ps1
This commit is contained in:
parent
dbce494fc1
commit
7b8e38f51d
1 changed files with 0 additions and 20 deletions
|
|
@ -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)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue