Archive for the 'Scripting' Category

IIS 7.0 PowerShell Provider CTP2 Released

Last week Microsoft released the Community Technology Preview 2 (CTP2) of the new PowerShell Provider for IIS 7.0, it’s now available for download from the IIS.net website.

New features in CTP2:

  • IIS7 Powershell provider now supports SSL (installing and acquiring a certificate, creating an ssl site binding)
  • Tech Preview 2 ships with 40 new cmdlets. All of these cmdlets are for day-to-day IIS tasks like creating web-sites, web-applications, enabled request tracing, adding a handler or a module.

PowerShell Provider features:

  • Create Web-Sites, Web Applications, Virtual Directories and Application Pools
  • Change Simple Configuration Properties on Web-Sites, Application Pools, Web Applications and Virtual Directories
  • Add and Change Complex Configuration Settings
  • Query Run-time Data (Web-Site State, Application Pool State, Currently Executing Requests)
  • Execute Advanced Configuration Tasks, Scripting, Integration with other PowerShell Snap-Ins and features
  • Search and Discover Configuration Settings

Download links:

Read more at Thomas Deml’s blog.

IIS 7.0 - How to script and automate configuration

Bill Staples has nice blog post about how to script and automate IIS 7.0 configuration, without writing code using the Configuration Editor.

Here is how you can generate code for ANY IIS7 configuration change, without writing a line yourself.

Read his post here.

Related articles on IIS 7.0 and PowerShell:

PodCast: IIS 7.0 PowerShell Provider

Want to hear more about the new IIS 7.0 PowerShell Provider, a new PodCast has been released. The PodCast includes an interview with Thomas Deml a senior Program Manager in the IIS Team.

Topics of the PodCast:

  • Talk about the IIS7 management cmdlets
    • Get/Set-WebConfiguration
    • Start-WebItem
    • Remove-WebConfigurationProperty
    • Ability to use XPath filters
  • Talk about the IIS7 PSprovider
    • Provider timeline - 2nd beta in June, final in October
    • Features
      • ability to configure IIS and ASP.net, sites, vdirs, apps, all that
      • ability to delegate
      • root of namespace: sites, app pools
  • What does the future hold (that you can discuss)
    • We talk about Server Core
  • Find the PodCast here.

    IIS PowerShell Provider - step-by-step

    Jeong Hwan from the IIS Team has posted a nice little article about the new PowerShell Provider for IIS 7.0. The article is for users who have never experienced Windows PowerShell and want to use the IIS PowerShell Provider and provides various examples.

    Read his article here: Learning IIS PowerShell Provider (Step by Step).

    IIS 7.0 PowerShell Provider Released

    Microsoft has released a Technical Preview 1 of the PowerShell Provider for IIS 7.0. The new provider is a snap-in that allows you to manage IIS 7.0 configuration.

    The IIS7 PowerShell Provider allows you to

    • Create Web-Sites, Web Applications, Virtual Directories and Application Pools
    • Change Simple Configuration Properties on Web-Sites, Application Pools, Web Applications and Virtual Directories
    • Add and Change Complex Configuration Settings
    • Query Run-time Data (Web-Site State, Application Pool State, Currently Executing Requests)
    • Execute Advanced Configuration Tasks, Scripting, Integration with other PowerShell Snap-Ins and features
    • Search and Discover Configuration Settings

    Download the Technical Preview 1 here:

    Windows PowerShell Released

    Windows PowerShell 1.0 has been released during Microsoft IT Forum in Barcelona.

    For those of you who doesn’t know PowerShell yet, it’s Microsofts next-generation commandline shell designed from the ground up to be flexible and powerful while still remaining easy to use.

    Windows PowerShell is supported on multiple platforms (x86, x64 & Itanium) and by multiple language technologies (English language, Localized and Multilingual User Interface).

    Download Windows PowerShell 1.0

    Source: PowerShell Blog

    .NET 3.0 Released

    Microsoft has released the latest version of the .NET Framework.

    The Microsoft .NET Framework 3.0 is the new managed code programming model for Windows®. It combines the power of the .NET Framework version 2.0 with new technologies for building applications that have visually compelling user experiences, seamless communication across technology boundaries, and the ability to support a wide range of business processes. These new technologies are Windows Presentation Foundation, Windows Communication Foundation, Windows Workflow Foundation, and Windows CardSpace. The .NET Framework 3.0 is included as part of the Windows Vista™ operating system; you can install it or uninstall it using Windows Features Control Panel. This redistributable package is for Windows XP and Windows Server 2003.

    The download to the redistributable package is here. Looks like the final release! The final version of the SDK has also been released here.

    No Touch Administration

    The guys a MSCOM has posted a collection of nice scripts, which they use in their work on MSCOM.

    Remote Desktop has changed the way we interact with our servers.  However if you have a farm of 50+ servers…heck even 10 servers, having to Remote into each server can not only be time consuming but cause your fingerprints to wear off.  Utilizing tools such as WMI (Windows Management Instrumentation), For Loop and PSEXEC you can administer a large number of servers remotely with minimum joint pain. The Examples below go from beginning WMI usage to more advanced techniques. These scripts are meant to be a base to start from and help you build a powerful toolset.

    Read their full post at source.