PowerShell: Control and Automate the Licensing of Office 365 Users

If you are familiar with my other PowerShell scripts 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 … Continue reading PowerShell: Control and Automate the Licensing of Office 365 Users

PowerShell: Image and Task Sequence Testing for Microsoft Deployment Toolkit and Hyper-V

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 … Continue reading PowerShell: Image and Task Sequence Testing for Microsoft Deployment Toolkit and Hyper-V

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

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 4.0)

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.8)

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.8)

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)