» Download this section as PDF (opens in a new tab/window)
More coming soon!
Description: Execute a PowerShell on one or many remote hosts
$targetServers = "Host1","Host2","Etc" Invoke-Command -ComputerName $targetServers {}
Description: Display the available number of VMQ offloads for a particular host
gwmi –Namespace "root\virtualization\v2" –Class Msvm_VirtualEthernetSwitch | select elementname, MaxVMQOffloads
Description: Disable VMQ for specific VMs
$vmPrefix = "myVMs" Get-VM | Where {$_.Name -match $vmPrefix} | Get-VMNetworkAdapter | Set-VMNetworkAdapter -VmqWeight 0
Description: Enable VMQ for specific VMs
$vmPrefix = "myVMs" Get-VM | Where {$_.Name -match $vmPrefix} | Get-VMNetworkAdapter | Set-VMNetworkAdapter -VmqWeight 1
Description: Power-On VMs matching a certain prefix
$vmPrefix = "myVMs" Get-VM | Where {$_.Name -match $vmPrefix -and $_.StatusString -eq "Stopped"} | Start-VM
Description: Shutdown VMs matching a certain prefix
$vmPrefix = "myVMs" Get-VM | Where {$_.Name -match $vmPrefix -and $_.StatusString -eq "Running"}} | Shutdown-VM -RunAsynchronously
Description: Stop VMs matching a certain prefix
$vmPrefix = "myVMs" Get-VM | Where {$_.Name -match $vmPrefix} | Stop-VM
Description: Get Hyper-V host RSS (recieve side scaling) settings
Get-NetAdapterRss
Description: Check Winsh and WinRM connectivity / status by performing a sample query which should return the computer system object not an error
allssh "winsh "get-wmiobject win32_computersystem"
More coming soon!
More coming soon!