Organizing Your PowerShell Code Using Regions

If you want to group parts of your code for debugging purposes or simple readability, the PowerShell ISE has the answer.

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.

Talking Through PowerShell

Boe shows you how to write scripts using the built-in voices on your computer. Just make sure you've got your headphones on.

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.

Regular Expressions I Use with PowerShell

From validating IP addresses to phone numbers, these are some of the handiest expressions in Boe's PowerShell toolbox. What are yours?

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.

Working with Performance Counters in PowerShell

The PerfMon tool has a lot troubleshooting advantages going for it, but its interface isn't necessarily one of them. Here's an alternative.

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.

Viewing Your Drive Information with PowerShell

Using Windows Management Instrumentation makes it easy to pull information about the drives on your system or remote systems. Here's how.

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."

Microsoft Releases PowerShell Core 6.0

Microsoft last week announced the general availability of PowerShell Core 6.0, which is notable for being a cross-platform DevOps tool for Windows, Linux and macOS.

How To Do Math with PowerShell

PowerShell is more than just scripting and automation. Given the right functions, you can also use it to solve numerical equations -- from the simple to the complex. Here's how.

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.

Working with Database Users and Roles Using PowerShell

While we've covered how to add users to the database, let's take it one step further and designate specific roles.

SharePoint Watch

Sign up for our newsletter.

I agree to this site's Privacy Policy.