I'm trying to do something like this. The Get-SomeOtherParameter returns a system.Array type list from a database. I don't want to hardcode my Valida ...
I'm trying to do something like this. The Get-SomeOtherParameter returns a system.Array type list from a database. I don't want to hardcode my Valida ...
Im trying to validate a parameter called "Collect" to accept only 3 parameters (basic, medium and full) but when i asign a "valid" value to the "colle ...
I'm looking for a way to make a cmdlet which receives parameter and while typing, it prompts suggestions for completion from a predefined array of opt ...
Good afternoon, I recently created a PowerShell script to automate and test PowerCLI scripts before running them on vCenters/ESXi hosts. At the mome ...
So I'm new to PowerShell, and I'm trying to get this function to work. I have 2 ValidateSet arrays with 3 parameters. These parameters are supposed to ...
I have a module with a lot of advanced functions. I need to use a long list of ValidateSet parameters. I would like to put the whole list of possible ...
I've been playing about with my new New-CompanyADUser cmdlet in our Company-AD module, and I'm experiencing a weird problem with my dynamic parameter: ...
OK, so I'm trying to write an advanced function that uses two different parameter set names, one is Default the other is TestAccountsOnly. Most of th ...
I'm trying to make a parameter mandatory, but only if another parameter uses certain ValidateSet values. It seems that using a code block on Mandatory ...
I am attempting to use ValidateSet with a boolean parameter however I cannot get it to function as expect. An example to replicate the issue: At r ...
I'm working on a powershell function with a set of required parameters. The validate set works great, however as Validate Set is.. if an option is e ...
I'm writing a script with PowerShell and at some point I needed to use ValidateSet on function params. It's a very good feature, but what I need is so ...
I have a dataset with repeated measures over time, in which I am looking for predictors of the maximum tn value. I am not interested in measures which ...
I have written a C# Tool where i can enter script parameters with an GUI which is generated based on the parmeter definitions of the script. Now i wa ...
I am using C# to create PowerShell cmdlets. For one of the parameters, I am using ValidateSet. [ValidateNotNullOrEmpty] [ValidateSet(new string[]{"ST ...
Here's a simple function that uses ValidateSet: My version has 3001 items instead of the .... If you'd like to follow along at home, here's a way ...