PowerShell
Installing and Configuring Windows Server Update Services with Windows Server 2016 Core
· ☕ 9 min read
Windows Server Update Services (WSUS) can use a lot of resources, so why not use Windows Server Core and make the most of the resources you have. In this post I’ll go through the initial steps on how to deploy and configure a WSUS server using command line and PowerShell. Important note: If you need the to boot Windows Server 2016 ISO from a USB flash drive, use the Windows USB/DVD Tool available to download direct from Microsoft.

Installing and Configuring Domain Controllers with Windows Server 2016 Core
· ☕ 6 min read
Windows Server Core is an ideal choice for Active Directory Domain Controllers due to it’s low resource usage and greatly reduced attack surface. In this post I’ll go through the initial steps on how to deploy a new Active Directory forest and add an additional Domain Controller to the domain, and finally I’ll run some basic checks on the health of the domain after installation. Important note: If you need the to boot Windows Server 2016 ISO from a USB flash drive, use the Windows USB/DVD Tool available to download direct from Microsoft.

Hyper-V Virtual Machine Backup Utility - Update v4.1
· ☕ 1 min read
Download it from the Microsoft TechNet Gallery the PowerShell Gallery and GitHub. Today I’ve released an update to my Hyper-V Backup Utility PowerShell script. Version 4.1 adds zip file creation and the ability to keep a history of Virtual Machine backups. These new features are included along with the ability to backup Virtual Machines using the built-in Hyper-V export function, meaning that the VMs do not need to be shutdown. However if the Hyper-V host lacks the permissions necessary to perform the export, it can be configured to shutdown the Virtual Machines and backup through a file-based copy operation.

Control and Automate the Licensing of Office 365 Users
· ☕ 5 min read
Update 2018-11-04: I’ve evolved the script in this post into a more friendly utility which I’ve posted about here. If you are familiar with my other PowerShell scripts/utilities this isn’t as complete or polished as them, but it get’s the job done, and that’s all we can really ask for right? Let’s say it’s in early beta. The purpose of this script is to automate the process of setting the location and Office 365 license for users, using a local Active Directory to specify the users.

Image and Task Sequence Testing for Microsoft Deployment Toolkit and Hyper-V
· ☕ 9 min read
In a previous post I wrote about my Image Factory PowerShell script for MDT. This post is about a script derived from that which I setup to test my images and my deployment task sequences. Since this script is only an edit of the previous one I don’t intend to release it “officially” on the TechNet Gallery or the PowerShell Gallery. To explain succinctly what this script does, it turns Task Sequences into Virtual Machines.

Hyper-V Backup Utility
· ☕ 10 min read
Flexible Hyper-V Backup Utility Hyper-V Backup Utility can be downloaded from: GitHub The Microsoft PowerShell Gallery A demonstration video is available on YouTube. If you would like to support me, please check out the links below. Thank you! Patreon Ko-fi PayPal If you’d like to contact me, please leave a comment, send me a tweet, or you can join the community on Discord. -Mike Features and Requirements It’s designed to be run on a Hyper-V host.

On-Prem AD User Creator Utility
· ☕ 4 min read
Configurable Script For Creating On-Prem Active Directory User Accounts On-Prem AD User Creator Utility can be downloaded from: GitHub Please consider supporting my work: Sign up using Patreon. Support with a one-time payment using PayPal. If you’d like to contact me, please leave a comment, send me a tweet, or you can join my Discord server. -Mike Features and Requirements Requires the Active Directory PowerShell module be installed.

WSUS Maintenance Utility
· ☕ 4 min read
Clean up your WSUS This version includes code contribution from ideas@habs.homelinux.net. Please consider supporting my work: Sign up using Patreon. Support with a one-time payment using PayPal. WSUS Maintenance Utility can also be downloaded from: The Microsoft PowerShell Gallery Join the Discord or Tweet me if you have questions: @mikegalvin_ -Mike Features and Requirements It’s designed to run either on a WSUS server itself or can be run from a remote machine.

Image Factory Utility
· ☕ 7 min read
Automate Creation of WIM Files Image Factory Utility can also be downloaded from: GitHub The Microsoft PowerShell Gallery A demonstration video is available on my YouTube channel. If you would like to support me, please check out the links below. Thank you! Patreon Ko-fi PayPal If you’d like to contact me, please leave a comment, send me a tweet, or you can join the community on Discord.

Windows Server Status Monitor v1.7
· ☕ 5 min read
I wanted to create a lightweight and easy to setup server status monitor. It needed to highlight any metrics that were outside of a customisable threshold visually and be able to e-mail the report or run continuously. Based on a script from Bhavik Solanki (on TechNet) and with some help from my good friend, and software developer Dan Price, we created WinServ-Status, now known as Windows Server Status Monitor. This utility is available to download from the Microsoft TechNet Gallery, PowerShell Gallery and GitHub.

E-mail Anywhere In Your PowerShell Scripts
· ☕ 4 min read
In my previous scripts I’ve included a function to send log files to an on-premises Exchange server. I’ve now put together an example script to improve this function to send emails to external e-mail providers, for example: Office 365, Outlook.com or GMail.com. This new code is designed to support many different requirements: No logging at all. Logging but with no e-mail. Logging with e-mail. E-mail with username & password authentication, with SSL.

Upgrading PowerShell and Windows Remote Management
· ☕ 1 min read
At the time of writing (2017-07-18) the latest PowerShell available is PowerShell 5.1 which is a part of Windows 10 1607 and Windows Server 2016. To find which version of PowerShell you have, type this command into PowerShell: 1 $PSVersionTable.PSVersion To upgrade PowerShell, you’ll need the latest Windows Remote Management for your version of Windows. You might also need to upgrade WinRM to remotely manage servers using the Server Manager tool, which comes with Windows Server and is a part of RSAT for Windows 10 version 1607 and later.

Log Manager Utility
· ☕ 5 min read
Flexible Clean Up and Backup of Log Files Log Manager Utility can also be downloaded from: The Microsoft PowerShell Gallery GitHub If you would like to support me, please check out the links below. Thank you! Patreon Ko-fi PayPal If you’d like to contact me, please leave a comment, send me a tweet, or you can join the community on Discord. -Mike Features and Requirements The utility will delete files and folders older than X days.