From 9f27df324ea12e87bccc70e168cae8d9a9a92bd8 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Sat, 22 Aug 2015 18:52:59 +0200 Subject: [PATCH] remove reg-import from optimize startmenu --- scripts/optimize-startmenu.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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