Using PowerShell to disable and move user and computer accounts

Here are two PowerShell scripts that I wrote and use to disable old Active Directory user or computer accounts. Typically I use the Microsoft Assessment and Planning Toolkit to have it identify “Days Since Last Activity” for both Active Directory Users and Devices. I then copy the list of Users or Devices I wish to …

Randomize Windows Updates via PowerShell and PSWindowsUpdate

If you manage a group of computers that have fallen behind on installing Windows Updates, this procedure and a few PowerShell tools may help you less-disruptively install a just a few randomized updates at a time when computers are idle. Objective Many of the computers in my environment are used 24/7 by rotating shifts of …

Use PowerCLI Set-HardDisk and Invoke-VMScript to increase the size of many virtual machine hard drives

Today I decided that I wanted to increase the C: volume of 20 VMware Horizon View parent virtual machines (the source for 1,000s of linked-clone virtual desktops) from 40 GB to 60 GB. The normal/painful way to do this would be: vSphere > select the virtual machine > Edit Settings > change Hard Disk 1 …

Fixing Veeam Backup v8 Periodic Scheduling

Two weeks ago, I upgraded my employer’s Veeam Backup and Replication infrastructure from Version 7 to Version 8 with Update 1. Most aspects of the upgrade went well, and Veeam BR is still a good product. That said, some recent changes to the scheduling components introduced some challenges. Backup Schedule Options When you create backup …

Randomize your Veeam backups via PowerShell

I’m about to write about randomly staggering your Veeam backups, which is abnormal. Most backup administrators want each and every backup to occur exactly at the same time on the same day. There are several good reasons to have predictable backups. Backups are scheduled to occur after hours when systems are less busy Backups are …