?
Solved

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

Posted on 2015-01-30
7
Medium Priority
?
234 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 82

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
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

 
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 1500 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 Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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