A fairly common question cmdlet developers have is “How do I invoke a cmdlet from within a cmdlet”. This usually comes up when converting a script or function into a compiled cmdlet. Marco Shaw is writing a nice series of blog posts covering this topic using the PowerGadgets cmdlets as examples.
Both PowerShell and Windows Management Instrumentation (WMI) are pretty incredible technologies that can do a lot of amazing things, but we’re all human, and keeping an encyclopedic mental reference of all of these amazing things would give Good Will Hunting a headache. For years, when I used WMI I almost always had a browser open to MSDN to help me figure out and remember the little details of a class in WMI,
Firstly i am sorry to post an unrelated question to this post. However i dont know where to post my questions. Here is my questionSay I have 2 cmdlet’sGet-locationGet-serviceWhen I create a test.ps1 file out of these 2 command and then run it,
I’m constantly amazed and delighted by what people are able to do with a single line of PowerShell. The System Center Virtual Machine Manager (SCVMM) team just released a PowerShell Cmdlet Reference HERE. That is cool – it allows anyone to go take a look at their Cmdlets to either get a better idea for what SCVMM does (or how it does it) or to learn from how they did their cmdlets.
Some of you reported that Impersonation doesn’t work while hosting PowerShell in ASP.net applications. The problem occurs when PowerShell’s pipeline is invoked in the following way from an ASP.NET application:
WindowsIdentity winId = (WindowsIdentity)HttpContext.Current.User.Identity;
WindowsImpersonationContext ctx = null;
Roberto Farah runs a Debugging Toolbox blog and recently got turned onto PowerShell. He has now written a set of PowerShell functions (PowerDbg Library) which allows PowerShell to control WinDbg. The effect is (almost) the same as if WinDbg had embedded PowerShell as its own scripting language.
I recently did an interview with TechTarget here:
BTW – it was a relatively long interview and the discussion got digested into the article. It is completely accurate but either I misunderstood one question or the digesting process changed the meaning of one conversation slightly.
The latest version of the Cmdlet Help Editor has been posted on the same link. It contains a few fixes. I recommend you all upgrade to this version:
Please let me know if you have any specific questions.