Powershell

  • PowerShell: Logging in JSON format

    PowerShell: Logging in JSON format

    Intro When writing scripts for clients, it’s important to generate good logs. It’s a common position where a script works perfectly in test. But in production something is askew. Being able to look back at the process and step through […]

     
  • Discover and Clear Admin Count Attribute with PowerShell

    Discover and Clear Admin Count Attribute with PowerShell

    What is Admin Count? Before we discuss Admin Count, a little background is needed. AD contains an object called AdminSDHolder. Its purpose is to protect objects. Specifically, objects which are members of administrative groups. AD objects have an attribute called “Admin […]

     
  • PowerShell Script for Data Migration

    PowerShell Script for Data Migration

    I recently needed to create a script for the purpose of migrating data. Due to complexity, a number of scripts were used. This post covers the script I created to remove illegal characters from directory names. Also adjusting for new […]

     
  • Default to Powershell in Windows Core

    Default to Powershell in Windows Core

    One of the big pushes in Server 2012 is the use a Server Core installation instead of the full GUI install. Microsoft have put a lot of effort into encouraging administrators to use Powershell as a core tool for day […]