Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Misc Newsgroups > PowerShell

RB

Vista - Standard Cmdlet Verbs - 'Manage'?

Reply
 
10-23-2009   #1
Radski


 
 

Standard Cmdlet Verbs - 'Manage'?

Hi all,

I have a script that, for reasons of coherence, does Enable, Disable, Stop,
Start and Set functions. Primary reason is that there's shared functions and
I do not want to have to distribute a library with my script a and also from
the point of view of changes - which are likely to be frequent in the early
life of the code.

Having checked both MSDN and the Cookbook for standard verbs I'm not finding
any good standard equivalent to what I think should be 'Manage'(?).

Any opinions at all - maybe there is something suitable which I've overlooked?

Thanks,

Radski

My System SpecsSystem Spec
10-24-2009   #2
Bob Landau


 
 

RE: Standard Cmdlet Verbs - 'Manage'?

Have you checked the standard help?

Enable, Disable, Start, Stop and Set are standard verbs


help get-verb

or just enter get-verb

"Radski" wrote:
Quote:

> Hi all,
>
> I have a script that, for reasons of coherence, does Enable, Disable, Stop,
> Start and Set functions. Primary reason is that there's shared functions and
> I do not want to have to distribute a library with my script a and also from
> the point of view of changes - which are likely to be frequent in the early
> life of the code.
>
> Having checked both MSDN and the Cookbook for standard verbs I'm not finding
> any good standard equivalent to what I think should be 'Manage'(?).
>
> Any opinions at all - maybe there is something suitable which I've overlooked?
>
> Thanks,
>
> Radski
My System SpecsSystem Spec
10-24-2009   #3
radski


 
 

Re: Standard Cmdlet Verbs - 'Manage'?

Hi Bob,

thanks for replying - yes, I'm aware of those - it was more of my musing
about what to do if you want to stick all these functions in one script....

I have indeed resorted to the Manage verb as it made sense for my situation.

Cheers,

R.

"Bob Landau" <BobLandau@newsgroup> wrote in message
news:EC9D9300-9C5A-47AC-8089-2878C22239A7@newsgroup
Quote:

> Have you checked the standard help?
>
> Enable, Disable, Start, Stop and Set are standard verbs
>
>
> help get-verb
>
> or just enter get-verb
>
> "Radski" wrote:
>
Quote:

>> Hi all,
>>
>> I have a script that, for reasons of coherence, does Enable, Disable,
>> Stop,
>> Start and Set functions. Primary reason is that there's shared functions
>> and
>> I do not want to have to distribute a library with my script a and also
>> from
>> the point of view of changes - which are likely to be frequent in the
>> early
>> life of the code.
>>
>> Having checked both MSDN and the Cookbook for standard verbs I'm not
>> finding
>> any good standard equivalent to what I think should be 'Manage'(?).
>>
>> Any opinions at all - maybe there is something suitable which I've
>> overlooked?
>>
>> Thanks,
>>
>> Radski

My System SpecsSystem Spec
11-07-2009   #4
RichS [MVP]


 
 

Re: Standard Cmdlet Verbs - 'Manage'?

Nearest I could find in the standard verbs would be Invoke
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"radski" wrote:
Quote:

> Hi Bob,
>
> thanks for replying - yes, I'm aware of those - it was more of my musing
> about what to do if you want to stick all these functions in one script....
>
> I have indeed resorted to the Manage verb as it made sense for my situation.
>
> Cheers,
>
> R.
>
> "Bob Landau" <BobLandau@newsgroup> wrote in message
> news:EC9D9300-9C5A-47AC-8089-2878C22239A7@newsgroup
Quote:

> > Have you checked the standard help?
> >
> > Enable, Disable, Start, Stop and Set are standard verbs
> >
> >
> > help get-verb
> >
> > or just enter get-verb
> >
> > "Radski" wrote:
> >
Quote:

> >> Hi all,
> >>
> >> I have a script that, for reasons of coherence, does Enable, Disable,
> >> Stop,
> >> Start and Set functions. Primary reason is that there's shared functions
> >> and
> >> I do not want to have to distribute a library with my script a and also
> >> from
> >> the point of view of changes - which are likely to be frequent in the
> >> early
> >> life of the code.
> >>
> >> Having checked both MSDN and the Cookbook for standard verbs I'm not
> >> finding
> >> any good standard equivalent to what I think should be 'Manage'(?).
> >>
> >> Any opinions at all - maybe there is something suitable which I've
> >> overlooked?
> >>
> >> Thanks,
> >>
> >> Radski
>
>
> .
>
My System SpecsSystem Spec
11-08-2009   #5
Larry__Weiss


 
 

Re: Standard Cmdlet Verbs - 'Manage'?

Yes, these do follow the pattern of having an "action" type parameter.

Invoke-WmiMethod
Invoke-WSManAction

- Larry


RichS [MVP] wrote:
Quote:

> Nearest I could find in the standard verbs would be Invoke
"radski" wrote:
Quote:
Quote:

> > Hi Bob,
> >
> > thanks for replying - yes, I'm aware of those - it was more of my musing
> > about what to do if you want to stick all these functions in one script....
> >
> > I have indeed resorted to the Manage verb as it made sense for my situation.
> >
> > Cheers,
> >
> > R.
> >
> > "Bob Landau" <BobLandau@newsgroup> wrote in message
> > news:EC9D9300-9C5A-47AC-8089-2878C22239A7@newsgroup
Quote:

>> > > Have you checked the standard help?
>> > >
>> > > Enable, Disable, Start, Stop and Set are standard verbs
>> > >
>> > >
>> > > help get-verb
>> > >
>> > > or just enter get-verb
>> > >
>> > > "Radski" wrote:
>> > >
>>> > >> Hi all,
>>> > >>
>>> > >> I have a script that, for reasons of coherence, does Enable, Disable,
>>> > >> Stop,
>>> > >> Start and Set functions. Primary reason is that there's shared functions
>>> > >> and
>>> > >> I do not want to have to distribute a library with my script a and also
>>> > >> from
>>> > >> the point of view of changes - which are likely to be frequent in the
>>> > >> early
>>> > >> life of the code.
>>> > >>
>>> > >> Having checked both MSDN and the Cookbook for standard verbs I'm not
>>> > >> finding
>>> > >> any good standard equivalent to what I think should be 'Manage'(?).
>>> > >>
>>> > >> Any opinions at all - maybe there is something suitable which I've
>>> > >> overlooked?
>>> > >>
>>> > >> Thanks,
>>> > >>
>>> > >> Radski
My System SpecsSystem Spec
Reply

RB


Thread Tools


Similar Threads for: Standard Cmdlet Verbs - 'Manage'?
Thread Forum
Quest AD cmdlet -what is the cmdlet to remove computer object PowerShell
Invoking Cmdlet Get-Location from cmdlet,cant get Currnt Directory PowerShell
Whether a cmdlet derives from cmdlet or pscmdlet PowerShell
Feedback Requested: New standard VERBS PowerShell
Disable standard users manage another account Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd