Reading Time: < 1 minute

Hi ppl! Here’s a quick guide on how to turn on Enhanced Session Mode using PowerShell on Hyper-V.

Turn on Enhanced Session Mode on a standalone Hyper-V Host.

Set-VMHost -EnableEnhancedSessionMode $True

Turn on Enhanced Session Mode using PowerShell Remoting on a standalone Hyper-V Host.

Invoke-Command -ComputerName "HostnameoftheHost" {Set-VMHost -EnableEnhancedSessionMode $True}

Turn on Enhanced Session Mode on a Hyper-V Host Cluster.

$Nodes = (Get-ClusterNode).Name -Join "," 
Invoke-Command -ComputerName $Nodes -ScriptBlock {Set-VMhost -EnableEnhancedSessionMode $True}

Verify configuration.

Get-VMHost | Select-Object -Property  *

Thanks for reading!