Showing archive results for 2007

Sep 10, 2007
Post comments count0
Post likes count0

Impersonation and Hosting PowerShell

PowerShell Team

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

ASP.NETImpersonation
Sep 9, 2007
Post comments count0
Post likes count0

Controlling WinDbg with PowerShell

PowerShell Team

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

Sep 1, 2007
Post comments count0
Post likes count0

Interview with TechTarget

PowerShell Team

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

Sep 1, 2007
Post comments count0
Post likes count0

New and Improved Cmdlet Help Editor Tool

PowerShell Team

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]  

Aug 31, 2007
Post comments count0
Post likes count0

Export-Demo

PowerShell Team

A while ago I wrote a script START-DEMO which I use to give demos (You can get the latest/greatest copy HERE. ) This script is also a great teaching tool. You can create your own demo.txt file with commands and explanations and then people can run it using Start-Demo. The great things about this are: Our test manager Michael Naixin Li asked m...

Aug 31, 2007
Post comments count0
Post likes count0

Monitoring with PowerShell and Appropriate Technology

PowerShell Team

Otto Helweg has a cool blog entry about how he uses PowerShell to monitor Web Sites HERE. This isn't a professional product but there are a couple of websites that he cares about and this quick and easy script tells him what he needs to know. It monitors a set of websites, looks for content to validate the page and then logs results and send email...

Aug 30, 2007
Post comments count0
Post likes count0

Show-WmiClass

PowerShell Team

Here is a script that I use to show WMI classes. I think you'll find it useful. There is an example after the script: ############################################################################# Show-WmiClass - Show WMI classes# Author: Microsoft# Version: 1.0# NOTE: Notice that this is uses the verb SHOW vs GET. That is because it# combines a Ge...

Aug 29, 2007
Post comments count0
Post likes count0

Out-*/Format-*

PowerShell Team

Don Jones has graciously offered to share a slide he uses as part of his Windows PowerShell Fundamentals course (http://www.scriptingtraining.com/ ) which shows the interaction between the pipeline, the out-* and format-* cmdlets. The attached slide illustrates how (sometimes) a picture is worth a thousand words.  Don has a great way of explai...

Aug 29, 2007
Post comments count0
Post likes count0

Making Applications Scriptable via PowerShell

PowerShell Team

OpenXtra has a blog entry PowerShell + Network Monitor = Powerfull Netman Tool which observes that if took a network manager tool and coupled it with PowerShell, you would have an awesome combination. A long time ago I was the architect for NetView so I feel qualified to offer this observation: YOU TOTALLY GET IT! Most management products and ce...

Aug 29, 2007
Post comments count0
Post likes count0

Emitting Objects verses Outputting Text to the Screen

PowerShell Team

Let's face it, PowerShell does a bunch of magic for you. If we've done our job right, this magic is exactly what you want 99 out of a 100 times. That said, if you are a power user, then at some point you'll encounter that 100th case and you'll need to understand the magic so you can get PowerShell to do exactly what you want. The good news is th...