如何使用 powershell 在 HyperV VM 上启用 EnhancedSessionTransportType?

How can I enable EnhancedSessionTransportType on a HyperV VM using powershell?

我正在尝试使用命令:

Set-VM -VMName "Ubuntu 18.04.1 LTS" -EnhancedSessionTransportType HvSocket;

根据 following article

但我刚得到 "Set-VM : A parameter cannot be found that matches parameter name 'EnhancedSessionTransportType'"

好像是这个parameter is not available但是我找到的所有指南都还在用它!

该参数在 Windows 10 1803 或更高版本 source 之前似乎不可用。