Archive

Script to get the binary differential replication status of all SCCM packages

November 26, 2017

Script to get the binary differential replication status of all SCCM packages
Problem An SCCM Environment I was looking at had a few hundred application packages. I needed to find out which were enabled for “Binary Differential Replication” to get to the bottom of some bandwidth issues that didn’t add up. This option is set under “Data Source” I figured there would just be a true or false variable for this check box so I ran “Get-CMPackage –id “XXXXXXX” on a package I knew had it enabled.

PowerShell Framework Module: Connect-Office365

November 10, 2017

PowerShell Framework Module: Connect-Office365
One of the most common things I use Powershell for is Office 356, this requires the modules be installed and connecting to one of the Office365 sessions, Skype, Exchange or the Security & Compliance center. Follow this project on GitHub It’s a fairly common process but including it in a script that is portable and performs environmental checks before running can be a bit of a pain.

Many to one mailmerge aka Manager mail merge

May 28, 2017

Sometime it’s necessary to email an individual about multiple people. Sometimes, its necessary to email loads of people about loads of people. I needed a way to email managers about staff in their team who were receiving new equipment. As this was multiple people in multiple teams with multiple managers it was a bit out of the scope of what mail merge is designed to handle.

PowerShell Framework

May 28, 2017

PowerShell Framework
Writing code that can be maintained by multiple people always requires some sort of structure. A lot of the frameworks I have seen are overly complicated for what is still essentially quite small scripts. So I decided to build my own My requirements were for a small, extensible framework I can use for quick scripts, everything I found online was overly complicated.

PowerShell Framework Module: Connect-AD

May 28, 2017

One of the most common things I use Powershell for requires the ActiveDirectory module. In its self, this isn’t an issue, I know I have it installed and that it will import automatically. The problem comes when sending or transferring the script to someone else. Follow this project on GitHub If the device running the script doesn’t have some modules installed or available a script will fall-over.

Script to flash populate an Active Directory lab!

May 28, 2017

Script to flash populate an Active Directory lab!
When you need to test Active Directory in a lab with sample users, creating sufficiently realistic test accounts is a time consuming and tedious process. There are a few quick scripts for creating something similar but many of them only create basic users which don’t emulate a production environment very well. Follow this project on GitHub This script will create users with the following attributes: