![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 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 Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| 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 | |||
| Shell Verbs and File Associations | Vista account administration | |||
| Feedback Requested: New standard VERBS | PowerShell | |||
| Disable standard users manage another account | Vista account administration | |||