Automating with Jenkins and PowerShell on Windows

Take a minute think about how many PowerShell scripts you have written for yourself or your team. Countless functions and modules, helping to automate this or fix that or make your teams lives easier. You spend hours coding, writing in-line help, testing, packaging your script, distributing it to your team. All that effort, and then a lot of the time the script is forgotten about! People just go back to doing things the manual way. I put this down to being out of sight, out of mind. Users who do not use the command line regularly will quickly forget about […]



Our NaNoWriMo Challenge: Write a PowerShell Article

In honor of National Novel Writing Month (NaNoWriMo), I wanted to offer a smaller, and more unique, challenge. Send me a PowerShell article. Seriously. My name is Don Jones, and this is PowerShell.org, so you can probably figure out how to contact me. Send me an article between 800 and 3,000 words (including code) in Microsoft Word format. Don’t attach any scripts. Please keep the formatting super-simple: paste code from the PowerShell ISE, and use Word’s default styles otherwise. If you must include screen shots, please embed them in the doc, but also include them as a a separate PNG in your […]


Building Desired State Configuration Custom Resources

Now that we’ve suitably rested, let’s get back to working with Desired State Configuration.  Now, there are some basic features to work with that ship by default and the PowerShell team has been blogging some additional resources, but in order to do some really interesting thing with DSC, we’ll need to create our own resources. The High Points Overview  Configuring the Pull Server (REST version) Creating Configurations (one of two, two of two) Configuring Clients Building Custom Resources (this post) Packaging Custom Resources Advanced Client Targeting The DSC Resource Structure DSC resources are (at their most basic) a PowerShell module.  These […]


Configuring a Desired State Configuration Client

Once we have our pull server in place and we’re starting to create configurations, we need to set up our client nodes to be able to connect to the pull server and how we want the node to behave. The High Points Overview Configuring the Pull Server (REST version) Creating Configurations (one of two, two of two) Configuring Clients (this post) Building Custom Resources Packaging Custom Resources Advanced Client Targeting Examining the Local Configuration Manager The Desired State Configuration agent included in Windows Management Framework 4 (or natively on Server 2012 R2 / Windows 8.1) is exposed through the Local […]


Building a Desired State Configuration Configuration – Part 2

Ok, let’s get back to creating a DSC configuration.  If you haven’t read the last post in this series, go back and do that now, I’ll wait.  Now with that out of the way, let’s get back to it… The High Points Overview Configuring the Pull Server (REST version) Creating Configurations (one of two, two of two – this post) Configuring Clients Building Custom Resources Packaging Custom Resources Advanced Client Targeting Picking Back UP Now that we have some of the basics down, we can start to look deeper at how composable these configurations are. A DSC configuration defined in […]


Building a Desired State Configuration Pull Server

Quick recap, I’m working through a series of posts about the Desired State Configuration infrastructure that I’m building at Stack Exchange, including some how-to’s. The High Points Overview Configuring the Pull Server (REST version) (this post) Creating Configurations (one of two, two of two) Configuring Clients Building Custom Resources Packaging Custom Resources Advanced Client Targeting I started with an overview of what and why.  Today, I’m going to start the how. Building a Pull Server I’m going to describe how to do this with Server 2012 R2 RTM (NOTE: this is not the General Availability  release, so there may be […]


Building a Desired State Configuration Infrastructure

This is a the kickoff in a series of posts about building a Desired State Configuration (DSC) infrastructure. I’ll be leveraging concepts I’ve been working on as I’ve been building out our DSC deployment at Stack Exchange. The High Points Overview (this post) Configuring the Pull Server (REST version) Creating Configurations (one of two, two of two) Configuring Clients Building Custom Resources Packaging Custom Resources Advanced Client Targeting I’m starting today with the general overview of what I’m trying to accomplish and why I’m trying to accomplish this. The what and why are critical in determining the how The Overview […]


eBook: Secrets of PowerShell Remoting

This is a free e-book that covers PowerShell Remoting. There’s a brief overview and tutorial of actually using Remoting, but that part isn’t in-depth. What this e-book provides, that you won’t find elsewhere, is step-by-step, screenshot-based instructions for configuring Remoting for any imaginable scenario. You’ll also find troubleshooting tutorials and examples, and even information on how to explain Remoting to your corporate IT security team. It’s all the stuff that isn’t documented in PowerShell’s own help – and it’s completely free. You don’t even need to register to download the file! Related posts: Building a Desired State Configuration Pull Server […]