Not necessary.

-----Original Message-----
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Saturday, April 13, 2013 7:13 PM
To: NT System Admin Issues
Subject: Re: PowerShell - Dependent parameters

On Sat, Apr 13, 2013 at 2:56 PM, Jeff Bunting <bunting.j...@gmail.com> wrote:
>>> I think you need sets that aren't disjoint, something like
>>
>> ... makes the "base" parameter set ambiguous, as it overlaps exactly 
>> with the "mailTo" parameter set. So, if I don't specify -mailTo, 
>> PowerShell pukes trying to figure out which parameter set I want ...
>
> You could try adding a "Position=X" to the parameters to deal with the 
> ambiguity; might have to move $eject elsewhere in the parameter order 
> though.

 So... select the parameter set based on the order in which the parameters are 
given?

 Ewww.  :-)  I like that less than the "-noMail" idea.  :-)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ 
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Reply via email to