When trying to set XCOPY to 16MB I get an error. I have tried quotes and no quotes and all other Advanced Settings seem to work fine. Also I noticed that this cmdlet is considered onsolete and the Set-AdvancedSetting cmdlet took it's place, but can't get it to work either.
Set-VMHostAdvancedConfiguration -VMHost host01 -Name DataMover.MaxHWTransferSize -Value "16384"
Set-VMHostAdvancedConfiguration : 11/16/2017 1:12:50 PM Set-VMHostAdvancedConfiguration A specified parameter was not correct:
At line:1 char:1
+ Set-VMHostAdvancedConfiguration -VMHost host01 ...
+ CategoryInfo : NotSpecified: (:) [Set-VMHostAdvancedConfiguration], InvalidArgument
+ FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_GetVmHostAdvancedConfiguration_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostAdvancedConfiguration
Yep, the integer fails with the same error message as well. I even tried it with pipelines, but Set-VMHostAdvancedConfiguration does not take pipelines apparently. I could always try with the non-obsolete cmdlet I guess but didn't iron out that syntax.