Skip to content

Commit

Permalink
Activate NUM lock on startup & login screen
Browse files Browse the repository at this point in the history
Credit to W4RH4WK#110
  • Loading branch information
MagicLike committed Aug 3, 2023
1 parent 390c2ef commit 85a221c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/optimize-user-interface.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

0 comments on commit 85a221c

Please sign in to comment.