diff --git a/scripts/disable-new-volume-control.ps1 b/scripts/disable-new-volume-control.ps1 index 80ddc88..183fca5 100644 --- a/scripts/disable-new-volume-control.ps1 +++ b/scripts/disable-new-volume-control.ps1 @@ -1,10 +1,6 @@ # Description: # This script restores the old volume slider. -Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1 - echo "Restoring old volume slider" -Import-Registry(@" -[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC] -"EnableMtcUvc"=dword:00000000 -"@) +mkdir -Force "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC" +sp "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC" "EnableMtcUvc" 0