Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
CROSSPOSTING: Develop Cmdlet in otherthan C# and VB
Last Post 29 Jun 2009 05:01 PM by
Marco Shaw
. 3 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Chris
New Member
Posts:5
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 Levy
PowerShell MVP, Admin
Veteran Member
Posts:1362
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
Chris
New Member
Posts:5
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 Shaw
Veteran Member
Posts:1684
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Active Directory
--Exchange Server
--SharePoint
--SQL Server
--System Center Family
--Non-Microsoft Products
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2