Update Invoke-WinUtilNumLock.ps1 (#2104)

This commit is contained in:
Chris Titus 2024-06-17 20:16:40 -07:00 committed by GitHub
parent ad81bab274
commit 4348f052c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@ function Invoke-WinUtilNumLock {
Write-Host "Disabling Numlock on startup"
$value = 0
}
New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS
$Path = "HKU:\.Default\Control Panel\Keyboard"
Set-ItemProperty -Path $Path -Name InitialKeyboardIndicators -Value $value
}