From 4348f052c3dc3cfcfe15940fc4561e47a081f8ed Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 17 Jun 2024 20:16:40 -0700 Subject: [PATCH] Update Invoke-WinUtilNumLock.ps1 (#2104) --- functions/private/Invoke-WinUtilNumLock.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/private/Invoke-WinUtilNumLock.ps1 b/functions/private/Invoke-WinUtilNumLock.ps1 index 64fe4110..97b36a94 100644 --- a/functions/private/Invoke-WinUtilNumLock.ps1 +++ b/functions/private/Invoke-WinUtilNumLock.ps1 @@ -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 }