PowerShell: Full Backup of Hyper-V Virtual Machines (Update 3.7)

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 can be downloaded from the Microsoft TechNet Gallery and the PowerShell Gallery. … Continue reading PowerShell: Full Backup of Hyper-V Virtual Machines (Update 3.7)

PowerShell: Create Active Directory Users In Bulk (Update 1.5)

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. My AD User Creation script can be downloaded from the Microsoft TechNet Script Cente. Features and Requirements This script requires the Active Directory … Continue reading PowerShell: Create Active Directory Users In Bulk (Update 1.5)

PowerShell: Automated WSUS Maintenance (Update 1.6)

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 (Update 1.6)

PowerShell: Image Factory for Microsoft Deployment Toolkit and Hyper-V (Update 2.7)

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 Microsoft … Continue reading PowerShell: Image Factory for Microsoft Deployment Toolkit and Hyper-V (Update 2.7)

PowerShell: Windows Server Status Monitor (Update 1.3)

I wanted to create a script to generate a status report from a list of servers. It needed to highlight any metrics that were outside of a customization threshold visually and be able to e-mail the report or run continuously and be a rudimentary system monitor. Based on a script from Bhavik Solanki (on TechNet) and … Continue reading PowerShell: Windows Server Status Monitor (Update 1.3)

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

PowerShell: Log Manager/Cleanup (Update 1.7)

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/Cleanup (Update 1.7)

PowerShell: Create Exchange Mailboxes For AD Users (Update 1.6)

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 and the … Continue reading PowerShell: Create Exchange Mailboxes For AD Users (Update 1.6)

WSUS Configuration Tweaks For Improving Performance

I've been dealing with some issues with a WSUS server recently. It services around 1000 devices, mostly Windows 10 with some Windows 7, Windows Server 2016/2012 R2/2012 and 2008 R2. The WSUS server provided updates for a variety of Microsoft products including Office, Exchange, SQL, Visual Studio, Windows Defender to name a few. The WSUS … Continue reading WSUS Configuration Tweaks For Improving Performance