From 35acad991744f0ce3a1106d819c66c06c02d33ef Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Sat, 22 Aug 2015 18:26:43 +0200 Subject: [PATCH] remove reg-import from new-volume-control --- scripts/disable-new-volume-control.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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