Troubleshooting Invisible / Hidden Characters in your PowerShell Code…

Recently I was helping a colleague with a PowerShell script, things were going great until we ran the code and nothing was outputting. Now this wouldn't normally be a problem but we knew there should be output. So we started troubleshooting our code... For this blog I'm going to use some really basic examples but … Continue reading Troubleshooting Invisible / Hidden Characters in your PowerShell Code…

Hyper-V On-The-Go – Reclaiming Drive Space

Continuing in our "Boldly Going" series I wanted to touch on a minor issue I've had when working with certain Hyper-V features. One of those endearing features/qualities is found when you want to delete a VM. Try this out in your environment on an expendable VM. Open your Hyper-V console, select the VM and choose … Continue reading Hyper-V On-The-Go – Reclaiming Drive Space

Powershell – "Search and Count All File Extensions on Multiple Machines using Powershell"

The Issue Recently I was at a customer that had a very strange and specific requirement. They wanted to query All File Type Extensions with a count on all machines in the environment. This was an environment with 30 000+ machines and they wanted it to run quickly and once off. The Investigation System Center … Continue reading Powershell – "Search and Count All File Extensions on Multiple Machines using Powershell"

PowerShell: Active Directory Cleanup – Part 4 – Unsupported Windows Operating Systems

Introduction Welcome to part 4 in my Active Directory Cleanup Series. This part is concentrated on pulling a report of Windows Operating Systems that are obsolete/unsupported. Using this report you can review them and decide if they should be removed or upgraded. Script 1: Long 1 liner. The following script was posted on one of … Continue reading PowerShell: Active Directory Cleanup – Part 4 – Unsupported Windows Operating Systems

PowerShell: Active Directory Cleanup – Part 3 – Stale Computer Objects

Introduction Hello everyone. Part 3 in my AD Cleanup series is stale computer objects. Stale computer objects are computers that haven't logged into the domain for a specified number of days. This script includes a NumberOfDays parameter that either you specify when calling the script or it defaults to 120 days during script execution. The … Continue reading PowerShell: Active Directory Cleanup – Part 3 – Stale Computer Objects

PowerShell: Active Directory Cleanup – Part 2 – Spacey Computer Names

Introduction Hello again, Scott Williamson back with the next installment in the series "PowerShell: Active Directory Cleanup". For this installment we going to take a look at a script that finds computers that have a space in their name. Per RFC 1123 DNS host names cannot contain white space (blank) in their names. This is … Continue reading PowerShell: Active Directory Cleanup – Part 2 – Spacey Computer Names

PowerShell: Active Directory Cleanup – Part 1 – Duplicate Computers

Introduction Hello World, Scott Williamson Senior Premier Field Engineer here. As a PFE, I frequently work with customers who ask how to cleanup Active Directory of old objects and data. To assist them in automating cleanup I have written several PowerShell scripts, functions, and workflows that I want to share in this blog series. Duplicate … Continue reading PowerShell: Active Directory Cleanup – Part 1 – Duplicate Computers

Hyper-V On-The-Go – Enabling the Lab Engine

Boldly Going - The Shakedown Cruise In an earlier blog I laid out some basics needed to build your own portable lab. I focused on the hardware needed and the considerations you need to keep in mind to ensure a successful effort. The hardware, however, is merely a tool (albeit a useful one) and needs … Continue reading Hyper-V On-The-Go – Enabling the Lab Engine