PowerShell Team

Automating the world one-liner at a time…

Latest posts

Mar 20, 2009
Post comments count 0
Post likes count 0

Get-ProgID

PowerShell Team

The other day, a friend over in Microsoft Research wanted to figure out how to get out the width and height of an image in PowerShell.  There are many ways that you can approach this particular problem.  I knew three right off of the top of my head, but none of them had a really optimal experience. I knew there had to be a better way.  Some object had to be able to give me back image width and height as a nice simple property. I normally use two functions to find my way around unfamiliar problems (before I start using search engines).  One I’ve shared out a few times is called ...

Mar 20, 2009
Post comments count 0
Post likes count 0

Active Directory Powershell Blog

PowerShell Team

AD team has started a new blog for their PowerShell Cmdlets.. In their own words "We are here to answer any questions about AD Powershell, share some tips and tricks, discuss the history behind certain decisions and features and hear your feedback on improving AD Powershell experience" Check this out http://blogs.msdn.com/adpowershell/  Osama Sajid

Mar 16, 2009
Post comments count 0
Post likes count 0

Local Boy Makes Good

PowerShell Team

Check it out:  http://www.microsoft.com/presspass/exec/de/snover/default.mspx One of the biggest Snoopy Dance moments of my life!   BTW - this is really a reflection of how important Microsoft views PowerShell. I'd love to say more but I've got some Snoopy Dancing to do.   Experiment! Enjoy! Engage! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Mar 13, 2009
Post comments count 0
Post likes count 0

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&wa=wsignin1.0 We haven’t added such a parameter to Get-ChildItem yet, but with some new features in V2, you can add them yourself. The techniques I describe below can be used to augment any cmdlet, or any script or function for that matter. If you don’t care much a...

Mar 11, 2009
Post comments count 0
Post likes count 0

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 for additions to PowerShell, but we haven’t decided on the exact list yet. Because V1 did not reserve these keywords, reserving them now would be a breaking change.  For example, some people like to add an alias like: If we reserved “new”, scripts using this alias w...

Mar 11, 2009
Post comments count 0
Post likes count 0

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 cmdlet. So, what’s new for Out-GridView in Windows PowerShell CTP3? A major feature we added was query filtering functionality; data can be queried according to their properties through this feature. Let’s look at an example. Running command: “Get-ChildItem | Out-GridV...

Mar 10, 2009
Post comments count 0
Post likes count 0

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 make a class in PowerShell because they think of problems in terms of classes.  The second is practical: the person wants to make a collection of properties and methods, because that’s what the pipeline in PowerShell plays nicely with (for instance, you can Gro...

Mar 8, 2009
Post comments count 0
Post likes count 0

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 ...............................................................................................................................................................1 Item 1: Four Cmdlets that are the Keys to Discovery within PowerShell ..................................................................1 Key #1: Get-Command ............................................

Mar 2, 2009
Post comments count 0
Post likes count 0

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 tell them what we are doing and where we are going and they give us great feedback.   MVPS are in invaluable source of real-world feedback on our technology.   I'm really excited this year because I'm co-presenting a sort of "State of PowerShell&...