Solved

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

Posted on 2015-01-30
7
160 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
  • 3
  • 2
7 Comments
 
LVL 78

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 39

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 39

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now