PowerShell Team
Automating the world one-liner at a time…
Latest posts
IT-Forum: Mgt308 Managing Systems with PowerShell – PPT
Attached is my presentation. 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 MGT308 Managing Systems with PowerShell.ppt
SQL Server Support for PowerShell!
Finally the information is public!!! You can't image how difficult it has been to know this information but not be able to tell anyone. It's so cool you just want to stop people on the street and tell them. Check out this eweek article: Microsoft Releases Another SQL Server 2008 CTP. In it is the following: "SQL Server 2008 running on Windows Server 2008 provides customers with trusted and secure access, high availability through revamped failover clustering, and simplified scripting through Powershell," Francois Ajenstat, director of product management for SQL Server, told eWEEK here at the TechEd IT Forum c...
-Name in Get-XXX Cmdlets
I just saw a cool article by Don Brown who has written a set of SMS Cmdlets for Windows PowerShell. These work with SMS 2003 and are well worth a look-see if you are an SMS customer. (Btw – I wrote Get-XXX to mean GET-(any nounname) but now that I look at it, it looks like a cmdlet to get hardcore porn – YIKES!! I can only guess at what the parameters to such a command would be. J ) While Don has published a relatively small set of initial cmdlets: It is a good start and may be something the community wants to create a community source project around at http://codeplex.com/ . (hint hint hint). As I looked at...
Notes for My TechEd Talk
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
TECHED: What’s New for Developers in PowerShell V2
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
Update-Gac.ps1
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() | %...
CTP: Get-AliasSuggestion Rewritten to us CTP functions
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...
Check it out: Out-vCard
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...
PowerShell V2 Book Available!
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...