Skip to content

Instantly share code, notes, and snippets.

@mariusv
Created February 6, 2013 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariusv/4722124 to your computer and use it in GitHub Desktop.
Save mariusv/4722124 to your computer and use it in GitHub Desktop.
Disable 'Large Receive Offload' on the driver properties for all interfaces using the Citrix PV Ethernet driver
$root = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}'
$items = Get-ChildItem -Path Registry::$Root -Name
Foreach ($item in $items) {
if ($item -ne "Properties") {
$path = $root + "\" + $item
$DriverDesc = Get-ItemProperty -Path Registry::$path | Select-Object -expandproperty DriverDesc
if ($DriverDesc -eq "Citrix PV Ethernet Adapter") {
Set-ItemProperty -path Registry::$path -Name LROIPv4 -Value 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment