6

I am trying to use the command:

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

As per the following article

But I just get "Set-VM : A parameter cannot be found that matches parameter name 'EnhancedSessionTransportType'"

It seems that this parameter is not available but all the guides I find still use it!

4
  • 1
    It looks like the feature is only available in Windows 10 1803 or higher: github.com/Microsoft/linux-vm-tools/issues/27 Maybe newer as it is not listed in the PS docs for Set-VM Oct 19, 2018 at 13:25
  • Ah - good spot I'm only on version 1709 - which I think is the support version my organistion is running - I'll have to wait for IT in my organisation to push out an update as I'm not able to update manually :(
    – Stephen
    Oct 19, 2018 at 13:55
  • 3
    You can also get this error if PowerCLI is installed on the host/your workstation. You can qualify the command using Hyper-V\Set-VM -VMName ... Jul 4, 2019 at 7:28
  • @AlwaysLearning THANK YOU! I was so frustrated since nothing I found on this cmdlet fails to be true and I'm already on 1909. And the reason was VMware!
    – Carl Chang
    Jan 11, 2022 at 15:20

1 Answer 1

6

The parameter doesn't look to be available until Windows 10 1803 or higher per source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.