header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
CROSSPOSTING: Develop Cmdlet in otherthan C# and VB
Last Post 29 Jun 2009 05:01 PM by Marco Shaw. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ChrisUser is Offline
New Member
New Member
Posts:5
Avatar

--
28 Jun 2009 08:41 PM
    Hello

    I want to know if it is possible to create a cmdlet in any language other than C# or VB.
     
    I specifically want to know if it is possible to develop a new cmdlet in powershell itself?

    Thanks
    Chris
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    28 Jun 2009 10:34 PM
    In PowerShell v2 you can create advanced functions (formerly known as Script Cmdlets). The syntax C# like. Check these help files (in v2) for more information:

    PS > help about_functions*

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    ChrisUser is Offline
    New Member
    New Member
    Posts:5
    Avatar

    --
    29 Jun 2009 01:55 PM
    Thanks Shay, I will look into these functions..

    All the cmdlets which come with PS are C# based implementations. Am I right in saying this? That's what I see when I look on internet for cmdlet development and on MSDN
    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    29 Jun 2009 05:01 PM
    Yes, all the cmdlets that come with the core PowerShell installation are in C#. Other teams may have written them in VB.NET, and an end-user wouldn't notice the difference.

    But like Shay says, some of these can be v1 and/or v2 functions.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer