PowerShell: Windows Server Status Report Generator

I wanted to create a script to generate a status report of a list of servers. In this report I wanted whether they were up or down, free disk space, and up time. I also wanted to highlight any problems visually and be able to e-mail the report. Based on a script from Bhavik Solanki (on … Continue reading PowerShell: Windows Server Status Report Generator

PowerShell: E-mail Anywhere

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. I've added this code to all of my previous scripts both here on … Continue reading PowerShell: E-mail Anywhere

Upgrading PowerShell and Windows Remote Management

At the time of writing (18/07/2017) 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: To upgrade PowerShell, you'll need the latest Windows Remote Management for your version of Windows. You might … Continue reading Upgrading PowerShell and Windows Remote Management

Walkthrough: Building a Windows 10 1703 (Creators Update) Reference Image with Microsoft Deployment Toolkit

Following on from a previous post which covers some queries and issues I had when first deploying Windows 10 1703 (better known as the Creators Update) this post is designed to walk through installing and configuring Microsoft Deployment Toolkit to build a reference image of Windows 10 1703 using a Hyper-V Virtual Machine. Installing & Configuring Microsoft Deployment … Continue reading Walkthrough: Building a Windows 10 1703 (Creators Update) Reference Image with Microsoft Deployment Toolkit

PowerShell: Create Active Directory Users From CSV File

For years I've had a AD user import VBS script as part of my toolkit, I thought it was about time to update it to PowerShell as well as add a few new features. This script is also available to download from the Microsoft TechNet Script Center. Compatibility and Requirements This script has been tested running … Continue reading PowerShell: Create Active Directory Users From CSV File

PowerShell: Log Manager

In my environment, I need to keep an archive of some log files for a period of time, whereas other logs are not so critical, and some applications generate logs which are already compressed into ZIP files daily. So I have all these different requirements for logs. I don't want them filling up my server … Continue reading PowerShell: Log Manager

PowerShell: Create Exchange Mailboxes for AD Users

Recently I needed to write a PowerShell script to create Exchange mailboxes for new users in Active Directory. The script needed to create the mailboxes, use different databases, retention policies, and take users from several Organisational Units along with users in child OUs. This script is also available to download from the Microsoft TechNet Script Center. Update: … Continue reading PowerShell: Create Exchange Mailboxes for AD Users

PowerShell: Automated WSUS Maintenance

In a previous post I wrote about some configuration tweaks to improve the performance of your WSUS server. I also included a short PowerShell script to automate the WSUS maintenance process. I've improved the script somewhat since then, adding more configuration options. This post will serve as a change log and documentation page. My WSUS … Continue reading PowerShell: Automated WSUS Maintenance

PowerShell: Virtual Machine Backup for Hyper-V

In a previous post I wrote about my Hyper-V backup script, powered by PowerShell. This post will serve as a change log and documentation page, as my previous post was more about how the script is written as a reference. My Hyper-V backup script is also available to download from the TechNet Gallery. When run … Continue reading PowerShell: Virtual Machine Backup for Hyper-V

PowerShell: Image Factory for Microsoft Deployment Toolkit and Hyper-V

In a previous post I wrote about my Image Factory for MDT, powered by Hyper-V and PowerShell. This post will serve as a change log and documentation page, as my previous post was more about how the script is written as a reference. My Image Factory script is also available to download from the TechNet … Continue reading PowerShell: Image Factory for Microsoft Deployment Toolkit and Hyper-V