Removing a User’s Profile Via Windows PowerShell

I had an issue at work that occasionally requires a user’s profile to be recreated, and found a way to get this done in PowerShell. Normally, to delete a user profile in Windows 8 requires going into System Properties, on the Advanced Tab, and clicking Settings...

Creating a Test Environment With Hyper-V for PowerShell Testing

If you’re in IT, you’re probably testing new stuff out pretty often, and maybe you don’t want to be stuck with TechNet’s Virtual Labs, which only simulate pre-made environments. Maybe you want to make and break your own environments — and...

PowerShell Study #2: Parameters and Syntax

Some notes I’ve taken while learning about the parameters and syntax of a PowerShell cmdlet as I read its help module.   Find the Syntax and Parameter Sets for a Cmdlet Use Get-Help for a command. In the resulting output window, the “Syntax” section...

PowerShell Study #1: Using the Help System

I’ve been running through the book Learn Windows PowerShell 3 in a Month of Lunches, by Don Jones and Jeffrey Hicks, widely considered one of the best books for PowerShell beginners. My “curriculum” largely follows the chapters in the book, each...