PowerShell Team
Automating the world one-liner at a time…
Latest 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 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 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 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 ExtendingPowerShell.zip

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 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 [Update] Here is the Wait-Process function that I refer to in the demo scripts. Note that doing a Get-Help Wait...

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: I'm here at the Microsoft Management Summit (MMS) in San Diego and the momentum is growing! And now for the biggie: It's a pretty big day for us in the PowerShell world. Cheers! 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 [Edit: Updated PowerGui.com to...

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 Majority of PowerShell’s execution happens through Pipeline class. PowerShell’s ConsoleHost constructs a pipeline with user requested command + input and invokes the pipeline. This is true for any host built on top of PowerShell. Pi...

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 in the future SW08 Managing systems with Windows PowerShell/Managing AD using PowerShell Wednesday, March 28 2:15 PM - 3:30 PM, Room 20D Speaker(s): Jeffrey SnoverTrack(s): Windows Management TechnologySession Type(s): BreakoutProducts(s): Windows PowerShell The first half of this session focuses on how to learn how to manage your systems using Windows PowerSh...

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 for my SW09 talk on Thursday. Scott Hanselman is going to join me and show you some of the great stuff he has been doing with PowerShell at Corrillian. SW09 Extending Windows PowerShell with Cmdlets/Managing a Production Web Service using PowerShell Thursday, March 29 10:15 AM - 11:30 AM, Room 31A Speaker(s): Scott Hanselman, Jeffrey Snover Track(s): Windows...

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 files or folders are present (or missing) or to look for a registry key that indicates that a program is installed, among so many other uses. My favorite Test-Path command reminds me when I've forgotten to copy my Windows PowerShell profile to one of my test machines (test-path $profile). Test-Path is so good that there was no need to exaggerate its abilities i...

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 as an update to Windows, upgrading to W2k3 SP2 will remove the powershell uninstaller and you cannot uninstall PowerShell directly. Windows update technology do not support out of order uninstalls ie., 1. Install Update A + Install Update B + Install Update C. 2. To uninstall Update A, the supporte...