-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
lav-filter-reg-update.ps1
24 lines (22 loc) · 998 Bytes
/
lav-filter-reg-update.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if (Test-Path "HKLM:\SOFTWARE\WOW6432Node\LAV\Splitter"){
""
"HKLM:\SOFTWARE\WOW6432Node\LAV\Splitter updating QueueMaxPackets to 3000"
$registryPath = "HKLM:\SOFTWARE\WOW6432Node\LAV\Splitter"
$Name = "QueueMaxPackets"
$value = "3000"
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
}
New-PSDrive HKU Registry HKEY_USERS
$hkeyUsers = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('USERS', $env:COMPUTERNAME)
$hkeyUsersSubkeys = $hkeyUsers.GetSubKeyNames()
$hkeyUsersSubkeys | % {
$runKey = "$_\Software\LAV\Splitter"
$runKeySubKey = $hkeyUsers.OpenSubKey($runKey)
if ($runKeySubKey) {
"$("HKEY_USERS:\$_\Software\LAV\Splitter") -- Key Found, updating QueueMaxPackets to 3000"
$registryPath = $("HKU:\$_\Software\LAV\Splitter")
$Name = "QueueMaxPackets"
$value = "3000"
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
}
}