Solved

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

Posted on 2015-01-30
7
175 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 79

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…

777 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