From 85a221c4956f2b0edb51da93656267768b5e5595 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Thu, 3 Aug 2023 13:41:55 +0200 Subject: [PATCH] Activate NUM lock on startup & login screen Credit to https://github.com/W4RH4WK/Debloat-Windows-10/pull/110 --- scripts/optimize-user-interface.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/optimize-user-interface.ps1 b/scripts/optimize-user-interface.ps1 index 8fd57dc..c5c9ecb 100644 --- a/scripts/optimize-user-interface.ps1 +++ b/scripts/optimize-user-interface.ps1 @@ -6,6 +6,9 @@ Import-Module -DisableNameChecking $PSScriptRoot\..\lib\New-FolderForced.psm1 Import-Module -DisableNameChecking $PSScriptRoot\..\lib\take-own.psm1 +# Create a new PSDrive to the HKEY_USERS hive +New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS + Write-Output "Elevating priviledges for this process" do {} until (Elevate-Privileges SeTakeOwnershipPrivilege) @@ -93,6 +96,9 @@ Remove-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\E Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" Remove-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" +echo "Enable Num Lock on logon and lock screen" +sp "HKU:\.DEFAULT\Control Panel\Keyboard" "InitialKeyboardIndicators" 2 + #echo "Disabling tile push notification" #New-FolderForced -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" #sp "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" "NoTileApplicationNotification" 1