diff --git a/scripts/optimize-startmenu.ps1 b/scripts/optimize-startmenu.ps1 index 18d4274..5bad4e8 100644 --- a/scripts/optimize-startmenu.ps1 +++ b/scripts/optimize-startmenu.ps1 @@ -1,10 +1,6 @@ # Description: # This script will do some optimization on the Windows start menu. -Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1 - echo "Disabling tile push notification" -Import-Registry(@" -[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications] -"NoTileApplicationNotification"=dword:00000001 -"@) +mkdir -Force "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" +sp "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" "NoTileApplicationNotification" 1