From b6671994289f996c336879c9056084b62f6fd550 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Fri, 26 Jul 2013 15:23:44 +0100 Subject: [PATCH] CA-112409: Set default parameter set for the constructor cmdlets or Get-Command is not working in PowerShell v2.0. Signed-off-by: Konstantina Chremmou --- powershell/gen_powershell_binding.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/gen_powershell_binding.ml b/powershell/gen_powershell_binding.ml index 484eb4c..55a35ef 100644 --- a/powershell/gen_powershell_binding.ml +++ b/powershell/gen_powershell_binding.ml @@ -468,7 +468,7 @@ using XenAPI; namespace Citrix.XenServer.Commands { - [Cmdlet(VerbsCommon.New, \"Xen%s\", SupportsShouldProcess = true)] + [Cmdlet(VerbsCommon.New, \"Xen%s\", DefaultParameterSetName = \"Hashtable\", SupportsShouldProcess = true)] [OutputType(typeof(%s))]%s [OutputType(typeof(void))] public class NewXen%sCommand : XenServerCmdlet