January 2009 - Windows PowerShell Team Blog

  • Managing Windows Update From PowerShell

    James O’Neil just posted how to manage Windows Update with Windows PowerShell Here’s a quick sample of what he can do: Add-WindowsUpdate –Auto to download updates and reboot if needed, Set-WindowsUpdateConfig –n 4 –i to schedule updates (Including the merely recommended)  and Get-WindowsUpdateConfig Check it out: http://blogs.technet.com/jamesone/archive/2009/01/27/managing-windows-update-with...
  • Getting Alternate Streams (Verbose, Progress, Debug) with the PowerShell API

    Dozens of people could write dozens of books on all of the cool stuff we improved in V2 of PowerShell.  One of the nice little things we did was give a more understandable API than Pipeline (which is the class you can use to invoke code from C# in V1).  This API is called the PowerShell API, and one of the improvements it makes is the ability to get to alternate data streams. Alternate data...
  • Rename-Drive : Renaming Drives with PowerShell & WMI

    Shane Burton from Compellant just asked me to help him rename a drive with PowerShell. It's possible to rename drives using a couple of different WMI classes, Win32_Volume , and Win32_LogicalDisk . You change the drive by setting a property name on the WMI Object (Label in Win32_Volume, and VolumeName in Win32_LogicalDisk), and then putting it back in the WMI repository with the Put() method. Read...
  • Managing Server Features with PowerShell Cmdlets on Windows 2008 Server R2 Beta

    If you have used Windows Server 2008, probably you had experience with managing server features. Server Manager is a traditional way to install/uninstall server features. On Windows 2008 Server R2 Beta , Windows PowerShell provides a new approach to managing server features via Server Manager PowerShell cmdlets. This blog will walk through installing server features with these cmdlets. To use the Server...
  • Design of Script Friendly APIs, lessons from $psISE

    Cmdlets are high level, task-oriented abstractions. The implementation of cmdlets can talk to anything: Web services, COM objects, WMI objects, .NET objects – anything. Depending upon how developers design their API, they can make it easier or harder to write cmdlets. Now that you can write cmdlets in PowerShell itself, here are some tips for designing your API so that it can be easily scripted against...
  • PowerShell Wizard

    Ye110wbeard did it again. Check THIS out.  Loads of fun.   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 Read More...
  • A Bit More On BITS

    I was in a meeting yesterday talking about BITS and what an awesome service it was.  I described what it did and how it allowed people to avoid a wide range of low-class, pain in the butt problems.  The question then became, "why isn't everyone using it?"  That's a darn good question.  The answer is that we have not educated people about it.  I aim to fix...
  • Debugging PowerShell Script Using the ISE Editor

    Normal 0 false false false EN-US JA AR-SA Normal 0 false false false EN-US JA AR-SA Hi writers and consumers of buggy scripts. This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks. The debugger support got the cmdlets and user interface. The cmdlets include Enable/Disable/Get/Set/Remove-PsBreakpoint and Get-PsCallStack. The general...
  • Why Should I Test With PowerShell?

    Today, on our internal discussion list, someone asked if there were any advantages to testing with PowerShell versus testing with C#. I was able to come up with 10 quick reasons to test with PowerShell: Being able to run command line programs easier within PowerShell Dynamically generating code or test data for a test case (fuzzing or data-driven testing get a lot easier with this) Being able to access...
  • Using PowerShell to Protect Against Conficker (Enabling and Disabling AutoRun.inf)

    On the front page of MSN.com today, there’s details about a new worm, Conficker , that spreads using the good old fashioned autorun.inf tricks.  It infects USB drives so that, when you plug the drive into another computer, it automatically runs and infects the machine.  The article mentioned a post on Nick Brown’s blog that instructs you on various ways to disable autorun.inf files and gives...
  • Group Policy Cmdlets in Windows 7

    Lilia Gutnik has posted a blog entry HERE showing an example of the Windows 7 Group Policy cmdlets.  Check it out.   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...
  • How To Make Your Own Module Repository

    Andy Schneider (from Get-PowerShell.com ) recently asked me how he could make sure that everyone at Avanade could get a consistent set of modules. I run into a somewhat similar problem here at Microsoft, where I want to take scripts I've built to work with internal applications and make them easy for people to use, even if they're not already using PowerShell. I don't want the scripts to...
  • Please Join Me for a Power Scripting Podcast Tonight @ 9PM EST (6PM PST)

    I’m going to be doing a PowerScripting Podcast tonight @ 9PM EST.  There’s a live chat room where you can ask questions and pick the brains of a tester / avid scripter on the PowerShell team. It should be fun.  I hope to see your questions there. http://powerscripting.wordpress.com/2009/01/14/tomorrow-on-powerscripting-live-james-brundage/ Hope this Helps, James Brundage [MSFT] Read More...
  • Windows 7 Troubleshooting

    Windows 7 has a cool new extensible troubleshooting framework which is entirely based on PowerShell scripts.  Rafael Rivera has written a very good step-by-step guide for how to author a Win7 Troubleshooting Pack HERE . Check it out. Experiment!  Enjoy!  Engage! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http...
  • Podcast Discussing WSMAN 1/14/2008

    Tomorrow evening I'll be doing the Mind Of Root podcast with Steve Murawski to discuss WSMAN.  WSMAN is the new standard management protocol to talk to all sorts of heterogeneous devices and is the protocol that PowerShell Remoting is based upon.  As a general rule, management protocols take forever to become relevant but I believe that WSMAN is going to catch on like wildfire. ...
1 2 3 Next >
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.