12 Sep 2010 @ 3:38 PM 

In Hyper-V guests it can happen, that the network gets discoonected for certain operations. There are two hotfixes but from my opinion it is also wise to disable all these special features on the netwrok card. Well for sure this should be done automatically – here is a powershell script that you can use:

DownloadScript

$key = dir “REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}” -ea silentlycontinue
foreach ($Name in $key) {
 $value = get-itemproperty Registry::$name -name *IPChecksumOffloadIPv4 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *IPChecksumOffloadIPv4 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *JumboPacket -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *JumboPacket –Value 1514

 }
 $value = get-itemproperty Registry::$name -name *LsoV2IPv4 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *LsoV2IPv4 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *LsoV2IPv6 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *LsoV2IPv6 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *TCPChecksumOffloadIPv4 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *TCPChecksumOffloadIPv4 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *TCPChecksumOffloadIPv6 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *TCPChecksumOffloadIPv6 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *UDPChecksumOffloadIPv4 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *UDPChecksumOffloadIPv4 –Value 0

 }
 $value = get-itemproperty Registry::$name -name *UDPChecksumOffloadIPv6 -ea silentlycontinue
 IF ($value) {
  set-itemproperty Registry::$name –Name *UDPChecksumOffloadIPv6 –Value 0

 }

}

Posted By: Matthias
Last Edit: 12 Sep 2010 @ 03:40 PM

EmailPermalink
Tags
Categories: Uncategorized


 

Responses to this post » (None)

 
Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Change Theme...
  • Users » 1
  • Posts/Pages » 51
  • Comments » 5
Change Theme...
  • VoidVoid
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater « Default
  • FireFire
  • LightLight