PowerShell Team

Automating the world one-liner at a time…

Latest posts

Nov 13, 2007
Post comments count 0
Post likes count 0

Notes for My TechEd Talk

PowerShell Team

If you are interested in my presentation: TECHED: What's New for Developers in PowerShell V2, you might be interested in this BLOG ENTRY by Sebastien Lambla over on http://serialseb.blogspot.com/ . He took very good notes during my session and posted them there. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Nov 8, 2007
Post comments count 0
Post likes count 0

TECHED: What’s New for Developers in PowerShell V2

PowerShell Team

Attached is the Deck I just presented at TechEd. I've provided it in PPT and PDF formats Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx TechEdTalk.zip

Nov 8, 2007
Post comments count 0
Post likes count 0

Update-Gac.ps1

PowerShell Team

Below is the content of the Update-GAC.ps1 script that I run whenever I install a new version of PowerShell. Our installation is supposed to ngen the assemblies in the background. If that works, it doesn't work fast enough for me. Also I've seen lots of examples where people run this script long after their install and things get a TON faster so …. The install team is looking into the issue but until then – here is the script I use: Set-Alias ngen @(dir (join-path ${env:\windir} "Microsoft.NET\Framework") ngen.exe -recurse |sort -descending lastwritetime)[0].fullName[appdomain]::currentdomain.getassemblies() | %...

Nov 8, 2007
Post comments count 0
Post likes count 0

CTP: Get-AliasSuggestion Rewritten to us CTP functions

PowerShell Team

I'm really enjoying the book Windows PowerShell Cookbook by Lee Holmes. It has lots of neat scripts. I decided to grab one and re-write it to highlight some of the features in the PowerShell V2 CTP. Below is the content for Get-AliasSuggestion.PS1 #requires -Version 2# Name: Get-AliasSuggestion# Author: Jeffrey Snover # Derived From: Lee Holmes#     This uses the CTP features of PowerShell V2 which may change#    which would cause this script to change. cmdletparam(# Version 2 (CTP) supports attributes on parameters.# These attributes cause the engine to do work for us [Mandatory] [Position(0)] [A...

Nov 7, 2007
Post comments count 0
Post likes count 0

Check it out: Out-vCard

PowerShell Team

Check out Dmitry Sotnikov's blog Out-vCard: Exporting Outlook Address Book. It lets you do things like: Get-QADGroupMember DL.ProjectA | Out-vCard To create a Vcard file for every member of a distribution list. This made my day (and I was already having a great day!). That said – this script BEGS to be rewritten using a HERE-STRING. If you haven't already educated yourself on HERE-STRINGS – do yourself a favor and stop what you are doing and get these in focus. Using them makes your code faster, smaller, more maintainable, it even makes your teeth whiter. Windows PowerShell Tip of the Week: Using Windows P...

Nov 7, 2007
Post comments count 0
Post likes count 0

PowerShell V2 Book Available!

PowerShell Team

The PowerShell ecosystem is once again proving itself to be super smart and agile. Superstar's Don Jones and Jeffery Hicks are once again demonstrating why they are MVPs for PowerShell. On Nov 12th, they (and Sapien Press) will release an electronic version of Windows PowerShell TFM, the 3rd edition that covers our CTP functions! That's right – one week after we released our CTP, Don has a book available. Now just to clear, MVPs have privileges, we gave Don, Jeffery and the other MVPs an early drop of the CTP so we could set their expectations and they could sanity check us. (We made a number of changes based...

Nov 6, 2007
Post comments count 0
Post likes count 0

What's New in CTP of PowerShell 2.0

PowerShell Team

  As you start to play with the CTP bits of Windows PowerShell 2.0, it would be wise to tell what's new in this CTP release.  First thing to know is that this release is compatible with and replaces Windows PowerShell 1.0. You must un-install PowerShell 1.0 to install this CTP release. Uninstalling Windows PowerShell 1.0 ·         Windows XP-SP2 and Windows Server 2003: Under Add/Remove Program, select the option to show updates. Remove the PowerShell updates as applicable for your system: KB926139 (en-us),KB926140 (localized), KB926141 (MUI pack) ·&nbsp...

Nov 6, 2007
Post comments count 0
Post likes count 0

The Community Technology Preview (CTP) of Windows PowerShell 2.0

PowerShell Team

  The Windows PowerShell Team is pleased to release the first Community Technology Preview (CTP) of Windows PowerShell 2.0! This release provides a “sneak peak” into the future, including key features that empower Windows administrators to: Run commands on a remote computer, or better, against N other computers.  Use the new PSJob cmdlets to start remote jobs and retrieve the results, either individually or in-aggregate!  Write real cmdlets in PowerShell script itself!  Internationalize your scripts and their output, not to mention debugging those same scripts! This CTP release helps developer...

Nov 2, 2007
Post comments count 0
Post likes count 0

CTP: Watch This Space

PowerShell Team

Next week we'll be releasing a Community Technology Preview (CTP) of Windows PowerShell V2.0. This release will not be for everyone. This morning I wrote 3 blog entries that set your expectation about the CTP. I decided to blog them BEFORE the CTP because when you see what is in the CTP – most of you will make a mad rush to download it and use it. It has some amazingly cool stuff in it (you'll hear more about that next week). You really need to read and understand my 3 blogs before making the decision to participate in the CTP: One point is worth making again (and again): Things WILL change. If you are goi...