Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Standard Cmdlet Verbs - 'Manage'?

3 views
Skip to first unread message

Radski

unread,
Oct 23, 2009, 5:46:01 AM10/23/09
to
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

Bob Landau

unread,
Oct 24, 2009, 11:13:01 AM10/24/09
to
Have you checked the standard help?

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


help get-verb

or just enter get-verb

radski

unread,
Oct 24, 2009, 2:08:58 PM10/24/09
to
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" <BobL...@discussions.microsoft.com> wrote in message
news:EC9D9300-9C5A-47AC...@microsoft.com...

RichS [MVP]

unread,
Nov 7, 2009, 5:54:02 PM11/7/09
to
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:

> .
>

Larry__Weiss

unread,
Nov 8, 2009, 1:10:24 AM11/8/09
to

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

Invoke-WmiMethod
Invoke-WSManAction

- Larry


RichS [MVP] wrote:
> Nearest I could find in the standard verbs would be Invoke

"radski" wrote:

0 new messages