Solved

Set-SCVMHost : A parameter cannot be found that matches parameter name 'EnableEnhancedSessionMode'.

Posted on 2015-01-30
7
213 Views
Last Modified: 2015-03-04
Why isn't this parameter working?`

PS E:\> get-vmhost hostname | % { Set-VMhost $_ -EnableEnhancedSessionMode $TRUE }
Set-SCVMHost : A parameter cannot be found that matches parameter name 'EnableEnhancedSessionMode'.
At line:1 char:46
+ get-vmhost m01trfshv0011 | % { Set-VMhost $_ -EnableEnhancedSessionMode $TRUE }
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-SCVMHost], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.SetHostCmdle
   t

Open in new window

0
Comment
Question by:itnifl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 40581045
use the right command
Set-VMhost -EnableEnhancedSessionMode $TRUE
0
 
LVL 2

Author Comment

by:itnifl
ID: 40582313
I did, look closely:
Set-VMhost $_ -EnableEnhancedSessionMode $TRUE

It still invokes Set-SCVMHost
0
 
LVL 40

Expert Comment

by:footech
ID: 40591568
I have no experience with these cmdlets, but I would ask why the code you posted references Set-VMHost, while the error message references Set-SCVMHost.

Do you have a proxy function, or did you post the wrong command?  Only Set-VMHost supports that parameter.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 2

Author Comment

by:itnifl
ID: 40605868
What sort of proxy function are you refering to? Custom made function that uses Set-SCVMHost and is named Set-VMHost? No, not that I know of. I have not defined any functions for this. Is there any place this could have gotten bewildered?
0
 
LVL 40

Accepted Solution

by:
footech earned 500 total points
ID: 40606341
I was actually thinking the other way around, function named Set-VMHost that references Set-SCVMHost.
You could examine the function drive.
gci function:\set*
Or look at the results from Get-Command.

Maybe make sure that System Center commands aren't available if you're not using them.  Since I don't use it, I'm not sure if they're loaded as a module or what.
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 40644445

PS E:\>  Get-Command Set-VMhost

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Alias           Set-VMHost

Remove-Item alias:Set-VMHost

That fixed the problem.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
A look into Log Analysis and Effective Critical Alerting.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question