PowerShell Team

Automating the world one-liner at a time…

Howto: Invoking cmdlets from within a cmdlet…

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. Check it out at:  http://...

Get-WmiHelp & Search-WmiHelp

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 ...
Comments are closed.0 0
WMI

Outputting vs. Emitting Objects

Sunil wrote: Hello, 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, it will always do a Get-service |fl  in the outputIe. A full listing of the ...
Comments are closed.0 0

Documentation One Liner

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) ...
Comments are closed.0 0

Impersonation and Hosting PowerShell

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....

Controlling WinDbg with PowerShell

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. Roberto considered a couple approaches ...
Comments are closed.0 0

Interview with TechTarget

I recently did an interview with TechTarget here: http://searchwinit.techtarget.com/originalContent/0,289142,sid1_gci1270125,00.html 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...
Comments are closed.0 0

New and Improved Cmdlet Help Editor Tool

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: http://www.wassimfayed.com/PowerShell/CmdletHelpEditor.zip Please let me know if you have any specific questions. Wassim Fayed[MSFT...
Comments are closed.0 0