PowerShell How-To

How To Transfer Files via SCP with PowerShell

Native support for Secure Copy Protocol (SCP) isn't in PowerShell, but that doesn't mean it's not capable.

How To Format PowerShell Output with Format-Table

You may not think too often about how text is displayed in your PowerShell console, but under the covers, there's quite a bit going on.

The Evolution of a PowerShell Function Parameter

Making code adaptable is a key skill for any coder. Here's a primer on how to stretch function parameters to fit a variety of situations.

Using a Custom Enum To Get Tab-Completion on a Parameter

Sometimes using ValidateSet isn't enough -- for instance, when you have multiple functions with the same parameter that you need to perform a task on.

Understanding Background Jobs in PowerShell

Synchronous code execution is fine for small scripts, but for more time-consuming scripts, consider running your code in the background as a job. Here's how.

Working with PowerShell History

Using these three commands, PowerShell allows you to read and manipulate just about every aspect of your command history.

Building a Wait-Action Function in PowerShell

The next time you need to wait on a step in your script, don't just add a delay. Instead, use a Wait-Action function to wait just the right amount of time.

How To Set an IP Address with PowerShell

Changing network adapter properties can be a chore the more machines you have, and the more numbers you have to punch in. Script out the process, instead.

How To Create and Invoke Your First DSC Configuration in Azure

Using Azure Automation DSC gives administrators the same benefits of PowerShell DSC, but with some bonus tooling.

Ensuring a Clean PowerShell Session for Your Pester Tests

It's important to start tests with a clean session, especially when writing unit tests and creating mocks. Here's how to run Pester tests in a completely new PowerShell process.

Filtering Command Output in PowerShell

In which Adam demonstrates the truth in the old PowerShell adage: "The more you can limit the number of objects returned to the pipeline, the faster you code will run."

PowerShell Pester Test Design: Best Practices

The Pester PowerShell module allows for some flexibility in how tests are written, but as Adam notes, there are still a few key points to consider.

How To Reset an Azure VM Admin Password with PowerShell

Using Azure's "virtual machine agent," you can reset the local administrator password without even hitting the Windows OS itself. Here's how.

How To Process Multiple CSV Files at Once in PowerShell

Since CSVs are so easy to work with, it doesn't take long to organize and process large sets of data.

Using Parameters in your Pester Test Scripts

Save time for accounting for changes in your scripts with this handy tip.

SharePoint Watch

Sign up for our newsletter.

I agree to this site's Privacy Policy.