Home > Network, PowerCLI, VMware, vSphere > Enable RSS in Guest OS with PowerCLI

Enable RSS in Guest OS with PowerCLI

If you have Windows 2003/2008 (R2) VMs with the VMXNet3 vNIC, you might want to enable RSS.

See the following article for more details and the improvements when enabling RSS.

Enable RSS (Receive Side Scaling) on Windows 2008 (R2) Virtual Machines

To enable RSS, you need to do some action inside the VM.  Luckily, this can be scripted.  Basically, we will invoke a batchfile from PowerCLI (through VMware Tools) to change a regkey which enables RSS.  This can be easily adapted to loop through all VMs and enable it on all with VMXNet3 adapters.

$objGuestCredentials = Get-Credential -Credential $null
$VM = "VMName"
Invoke-VMScript -VM $VM -ScriptType Bat `
-ScriptText "reg add HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}007 /v *RSS /t REG_SZ /d 1 /f" `
-GuestCredential $objGuestCredentials -WarningAction SilentlyContinue

You will get a message “The operation completed successfully” when executed.

When we go into Device Manager and check the Advanced properties of the VMXNet3 vNIC, we can see RSS is now enabled.


Categories: Network, PowerCLI, VMware, vSphere
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: