Category: Powershell

Build your Azure lab with DSC and validate it using Pester – 1/3

  Here is another post about DSC & Pester.. Yes, because they are truly the perfect combo to work with. Just do you script and Pester will test everything you need for you 🙂 (I know i’m repeating myself…) So let’s go build our lab. What is neeeded in order to build my lab: A…




Create your first Pester script to test a DSC resource

  Maybe you already took a look to my previous post about Pester, Git and PowerShell interraction… If not, you really should before read this one. I won’t re-explain why it’s important for your work to use them, now, i will talk about how use them together to get your work done. Actually, i will…




Why you should use Pester and evolve to the devops side ?

  If you follow this blog, or maybe we already met before, you know i’m not a developper, actuallyt, i’m really far away from that 🙂 But, in your life, you can’t be always right, there are (many) times when you need to rethink about the whole situation. that’s exactly what’s happening to me now….




DSC resource for managing SNMP configuration

Desired State Configuration is a key feature in PowerShell, even more with the last November preview, available since yesterday ! So, little by little, i’m migrating all my customization steps from powershell scripts to DSC Resources, and today i decided to share a quick one, but a mandatory part of my servers configuration, the monitoring…




DSC Resource: Create an unattend.xml file

Today, it’s a quick post to give you a custom dsc Resource of mine.. Bellow, here is a script that you have to reg in a *.psm1 file to enable you creating very basic unattend.xml file for your installations, it’s very helpfull when building your home lab, or other infras 🙂 Like always with DSC,…




Writting custom DSC resource

During the European PowerShell summit, the hackaton was focused on 4 subjects, but only one direction:  Build a custom DSC resource for the community. It was very intresting, and like after each IT Event, you come home with many many ideas… Your wife still doesn’t like it but… Anyway, if you weren’t at the summit:…




Desired State Configuration is mostly awesome…

But, sometimes you can’t use it! As i’m working on my script for Rebuild conf. I’m facing terribly issues with Exchange 2013 installation with DSC. I will show you how you can “install” Exchange 2013 remotely mostly with DSC.. First of all, you need to install Windows features and roles.. this is the easy part…




Orchestrate your scripts with workflows – Part 1

Availables within PowerShell v3, workflows were created to bring you a solution to orchestrate and coordinate your multimachines sequences. Workflows are robust, reliable and handle long running tasks! According my experience, many peoples know about them, but not so many administrators use them. Let’s have a full visit about using them, and building them….




Back to basics: Hashtables

One of the most usefull features in PowerShell are arrays, i already talked about them in a previous post. Today i’ll write about their sister: Hashtables. Hashtables are really awesome for your daily scripting work, in many scripts they are at the center becauseyou can access item not  only with the index, but by whatever…




Geolocalisation function

Hi, Today i’ll just share a little function to use a public REST API to use Geolocalisation in your PowerShell scripts. Everything need to use it is in the help bellow….