Showing archive results for 2009

Mar 13, 2009
Post comments count0
Post likes count0

dir –a:d

PowerShell Team

In cmd, listing files based on attributes was simple: In PowerShell, it’s not so easy: We have had requests to cover the first case better, for example: https://connect.microsoft.com/feedback/ViewFeedback.aspx?SiteID=99&FeedbackID=252549&wa=wsignin1.0 https://connect.microsoft.com/feedback/ViewFeedback.aspx?SiteID=99&FeedbackID=308796...

Mar 11, 2009
Post comments count0
Post likes count0

Reserving keywords

PowerShell Team

A couple months ago we asked our MVPs how they felt about reserving keywords in V2.  We received some excellent but mixed feedback, so we’d like to open the discussion up a bit wider. There are keywords we hope to use in a future version of PowerShell, but won’t be implemented in V2.  “class”, “using”, and “new” are excellent candidates f...

Mar 11, 2009
Post comments count0
Post likes count0

Out-GridView Revisited

PowerShell Team

It has been more than one year since we updated Out-GridView feature with you. In case you are not familiar with Out-GridView yet, it is a unique PowerShell cmdlet that users can pipe command output to a separate window, and it enables users organize and analyze output data easily. The previous blog entry by Brent gave an overview of Out-GridView c...

Mar 10, 2009
Post comments count0
Post likes count0

How to Create an Object in PowerShell

PowerShell Team

Today someone in Xbox Live Operations (the folks that keep xBox Live alive and well) pinged me with a simple question about PowerShell with a complicated answer: “How do I create a class in PowerShell?” There’s two scenarios I find where people want classes.  The first (and most common) is familiarity: the person wants to ma...

CTP3HowTo
Mar 8, 2009
Post comments count0
Post likes count0

Free PowerShell EBook

PowerShell Team

PowerShell MVP and prodigious PowerShell blogger Keith Hill has converted his very popular Effective PowerShell blog series into a FREE Ebook.  You can download it HERE. Here is a taste of you'll you'll get: Table of Contents Introduction ......................................................................................................

Mar 2, 2009
Post comments count0
Post likes count0

2009 MVP Summit

PowerShell Team

The MVP summit started yesterday and we meet with our MVPs today.  This is one of my favorite events of the year.  MVPs are people in the community that are very active (and helpful [yes - they look at both :-)] ) in a particular technology community.  We get them all together each year and have a good exchange of ideas.  We tel...

Mar 1, 2009
Post comments count0
Post likes count0

PowerShell Folksonomy – Are You In?

PowerShell Team

A while ago I did some experimentation with a PowerShell folksonomy.  The idea was to tag internet content (blogs, comments, newsgroup replies, etc) with unique tags that search engines would pick up and make it easier to find exactly the information you needed.  This effort stemmed from an documentation battle we had over the use of the...

Mar 1, 2009
Post comments count0
Post likes count0

Where Did That Come From?

PowerShell Team

Have you ever found yourself asking the question, "where did THAT come from?"? In PowerShell we try to give you mechanisms you can use to answer questions like that.    We spend extra resources (memory, cpu cycles, etc) to do this because we focus in the performance of the PEOPLE using our software instead of the performan...

Feb 27, 2009
Post comments count0
Post likes count0

Converting to Array

PowerShell Team

When you run a PowerShell pipeline, that pipeline might return 0, 1 or many items.  If you are assigning the results of that pipeline to a variable, you will get $null, 1 item or an array of items respectively.  Sometimes, you won't care about the different types returned, but at other times, you'll actually prefer to force the resul...

Feb 11, 2009
Post comments count0
Post likes count0

Stopping Every Instance of PowerShell.exe (except the one I'm in)

PowerShell Team

Our Test Architect just dropped by my office and pitched me a PowerShell question with a nice, quick answer. He wanted to stop every process of a particular name, except for the instance that was running the script. You can do this in one nice pipeline: Get-Process Powershell  | Where-Object { $_.ID -ne $pid } | Stop-Process Get-Proces...