close

Powershell

AutomationDevOpsPowershell

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
DevOpsPowershell

Simple Powershell Central Config

tools-5096

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
AutomationDevOpsIISPowershell

Script IIS Shared Configuration

As discussed on the Top 10 IIS Configuration Tips article, the Shared Configuration feature is a must have for building web farms with IIS. But let’s look at how we can use Powershell to script IIS Shared Configuration. If we’re building and managing multiple farms or one very large farm, being able to automate the setup will save us time and improve the quality of our setup.

read more
1 2 3 5
Page 1 of 5