IIS Configuration Restore

IIS Configuration Restore

If you’ve ever made a change in IIS and then your websites stop loading, you quickly start looking for a way to restore your last config. Luckily IIS7 introduced a feature called Configuration History that automatically backs up your config when it detects a change. Here’s how to make use of those backups and perform an IIS Configuration Restore, as well as how to manually backup your configuration.

read more

Powershell Log Archival Script

Log Archival Script

Lets face it, there’s nothing really exciting about log file management. But like it or not its a pretty common task for DevOps to deal with log files. We’d all like our applications to use a Logging Service like Splunk or Loggly, but until that time comes we need to deal with log files on servers. I developed this script based off the following requirements:

read more

Comparing SQL Indexes with Powershell

A common challenge I’ve faced is managing many SQL Server Indexes across multiple databases in multiple environments. There’s often a need to not only check that Indexes exist, but that they match. For example does your Test environment have the same Indexes as your Dev environment.  Traditionally I’ve always tackled this using SQL Management Studio, but after awhile I looked for a way to perform this faster through Powershell scripting.

read more

Simple Powershell Central Config


One of the aspects that I really like about the embracing of DevOps mentality is that we have more acceptance between the disciplines of Development and Operations. On the Ops side that means taking some of the core development pillars and incorporating those standards and ideas into areas like script development.  Two concepts that I think are important for Powershell scripting is the removal of hard coded values and code reuse. That means making scripts more robust, creating an ecosystem that supports your scripts, and creating scripts that are more modular.

I’m often coming up with Powershell scripts that need to target a specific environment. That environment could contain multiple servers that need to be updated,  a specific database connection, or specific URL. Instead of hard coding connection strings in every script, I wanted to store them in a Powershell central config. I also wanted to easily reuse the functionality with limited redundant code. What I’ve created is a simple Powershell Central Config. I specifically lets me get environment configuration details by referencing an environment name.

read more
1 2 3 8
Page 1 of 8