Welcome to MSDN Blogs Sign in | Join | Help

March 2007 - Posts

MMS2007: SW10 Advanced PowerShell Scripting

Attached is a zip file which contains the PowerPoint slides and demo scripts for my SW10 Advanced PowerShell Scripting talk that I'm about to give at MMS2007. Enjoy! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell
Posted by PowerShellTeam | 5 Comments

Attachment(s): AdvancedPowerShell.zip

MMS2007: SW09 Extending PowerShell/Mananaging a Production WebSite using PowerShell

Attached is a zip file which contains the PowerPoint slides and demo scripts for my SW09 Extending PowerShell/Mananaging a Production WebSite using PowerShell talk that I'm about to give at MMS2007. Enjoy! Jeffrey Snover [MSFT] Windows Management Partner

MMS2007: Managing Systems Using PowerShell

[3/20/07 - Updated zip file with Demo-ManagingAD.Txt] Attached is a zip file which contains the PowerPoint slides and demo scripts for my SW08 Managing Systems Using PowerShell talk that I'm about to give at MMS2007. Enjoy! Jeffrey Snover [MSFT] Windows
Posted by PowerShellTeam | 4 Comments

Attachment(s): ManagedSystems.zip

Announced: PowerShell to Ship in Windows Server (Longhorn)!!!!

The rate of PowerShell adoption has been quite stunning. We've all been amazed by the momentum. Here are a few datapoints: We have had well over 400,000 downloads of Windows PowerShell since we released in November! We are up to eight books in the US,

Thread.ApartmentState and PowerShell Execution Thread

Recently someone, in internal discussion groups, asked if it is possible to set “ApartmentState” on the powershell’s execution thread. I thought this info is useful to some of you and hence this blog. To touch basics on ApartmentState see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingapartmentstateclasstopic.asp
Posted by PowerShellTeam | 8 Comments
Filed under:

MMS: SW08 Revised Title/Abstract

Here is another change for those of you coming to MMS. Yesterday I reviewed the demo that we'll be showing at this session and was really excited by what I saw. We video taped it for Channel9 so if you miss the talk/demo, you'll be able to see it sometime

MMS: SW09 Revised Title/Abstract

I hope to see some of you at MMS (Microsoft Management Summit) in San Diego next week. I'll be giving a number of talks and will be around a lot so please come introduce yourself and say howdy. I'm pleased to announce a change in the title and abstract

Test-Path: We Goofed

Test-Path: We Goofed! (also known as a documentation errata…) Test-Path is a very handy little cmdlet. You submit a path and it tells you (TRUE/FALSE) whether the elements of the path exist on the computer. You can use it to determine whether particular

Windows Server 2003 SP2 upgrade

Because of the nature of the Windows Service pack (SP) releases, all the windows updates are consumed by SP upgrade. So once you upgrade to a new SP all the updates that were installed earlier cannot be uninstalled. Since Windows PowerShell is released
Posted by PowerShellTeam | 12 Comments
Filed under:

Monad Manifesto – the Origin of Windows PowerShell

A Attached is a public version of the original Monad Manifesto. This is not a Windows PowerShell whitepaper nor is it an accurate description of how V1.0 works. This is a version of the original Monad Manifesto which articulated the long term vision and

PowerShell Webcasts available

Don Jones is doing a series of PowerShell WebCasts over at Microsoft.com. There are the one coming up: Functions, Filters, and Efficiency in Windows PowerShell (Level 200) Tuesday March 20, 2007 11:30-12:300 PST Windows PowerShell and Windows Management

Installing PowerShell on Vista/"Longhorn" Server

1. I am new to PowerShell and would like to install it on my Vista machine. The following page http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx gives you links to various PowerShell downloads. Choose the one

Detecting Conflicts between Aliases, Functions, and Cmdlets

Version 1.1 of the PowerShell Community Extensions has just been release so I decided to kick the tires. After I installed it, I noticed that some conflicts and then realized that there might be conflicts between my customizations and the Aliases, Functions

Scripting Pro VIP Interview

Scott Ottaway and I recently did an interview with Karen Bemowski. You can read it here . Jeffrey Snover [MSFT] Windows PowerShell/MMC Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter

Why Can’t I Pipe Format-Table to Export-Csv (and get something useful)?

Ken's PowerShell blog has an entry Remote Services and PowerShell where he wrote a function to get services from a remote machine using WMI. He formatted the data using FT (format-table) and then went on to export the data to CSV. He pointed out that

Invoke-Expression

I fixed a bug in Start-Demo (Script attached) that is worth exploring. The heart of Start-Demo is to get a line from file, display it and then run it showing the output. To do this I used Invoke-Expression (For simplicity sakes, I'm going to show you
Posted by PowerShellTeam | 1 Comments

Attachment(s): start-demo.ps1

How does the RemoteSigned execution policy work?

You might have wondered how the "RemoteSigned" execution policy protects us from running unsigned PowerShell scripts downloaded from the internet. We use the URL Security Zones API related to "Attachment Execution Service" (AES) introduced in Windows

Managing SQL with PowerShell - PowerSMO

Dan Sullivan has been doing some great things using PowerShell to manage SQL. Dan wrote that Addison-Wesley book "A Developer's Guide to SQL Server 2005" along with Bob Beauchemin. He has now started a series of articles on this topic at simple-talk.com.

Renaming Files

Let's have a little fun with Rename-Item: [3112:0]PS> dir Directory: Microsoft.PowerShell.Core\FileSystem::C:\temp\jps Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 3/5/2007 4:21 PM 948 a -a--- 3/5/2007 4:21 PM 1214 b -a--- 3/5/2007

Improved Start-Demo Script

I showed my Start-Demo script to my wife and she wasn't impressed J . She gave me some good ideas about how to make it better so I've updated the script and attached it to this entry. The changes are: If you typed anything other than <CR>, it added
Posted by PowerShellTeam | 6 Comments

Attachment(s): start-demo.ps1

Windows PowerShell & Microsoft Management Console (MMC) ISV Workshop

Dear Valued Microsoft Customer, You are invited to attend the Windows PowerShell & Microsoft Management Console (MMC) ISV Workshop (Building Next Generation Command Line and GUI Applications on Windows) on April 18 th & 19 th 2007. This is a free

Note on Performance

Vinicius Canto posted a comment regarding the performance of the QL function that I posted in my Year of the Pig Revisited – the magic of QL blog post. He found that this function was 16x slower than creating an array using the form: @("Pig", "Rat", "Ox").

Software Inventory

Otto Helweg has started a blog called Management Matters that I think you'll enjoy. He just posted an entry about how to use PSINFO (from SysInternals) and PowerShell to do a quick and dirty software inventory and displaying the results to a screen or

Internet Radio Function

I found a cool blog entry at http://hung-yuwu.spaces.live.com/Blog/cns!744FB258BF8C8020!1377.entry . I have no idea what it says but I can read the script and I like it. The person has an internet radio site that they like and wrote a simple script to

Functions vs Filters

In my previous entry, I referred to Rsbohn's blog PowerShell $Profile and his function to slow down output function slowly ($tempo=100) { process { $_; Start-Sleep -milliseconds $tempo}} This is a good candidate for a FILTER. A filter is function that

Start-Demo: Help doing demos using PowerShell

A couple a weeks ago I got a call from BillG's Technical Assistant (TA) telling me that Bill and Ray (Ozzie) wanted to get a demo of the new stuff we were doing with PowerShell. The setting was Bill's conference room that would be organized with a number
Posted by PowerShellTeam | 10 Comments

Attachment(s): Start-Demo.ps1

Improved PowerShell grammar Documentation

Bruce Payette is a co-designer of the PowerShell language and the development lead for its implementation. From that, you might guess that his book: Windows PowerShell in Action would provide a great explanation of the language and how to use it – you'd

Year of the Pig Revisited – the magic of QL

Richard Siddaway has a blog entry showing how to calculate the Chinese Horoscope using PowerShell. His solution uses hashtables: ## create hash table $years = @{1="Rat"; 2="Ox"; 3="Tiger"; 4="Rabbit"; 5="Dragon"; 6="Snake"; 7="Horse"; 8="Goat"; 9="Monkey";
 
Page view tracker