PowerShell How-To


How To Save and Read Sensitive Data with PowerShell

If you deal with private data, automate how you access it with this handy tip.

Working with the LocalAccounts Cmdlets in PowerShell v5

A feature that had been in high demand, native local account management, is finally in PowerShell.

Creating CSV Files with PowerShell

The process is similar to creating any plain text file in PowerShell -- but with a few twists.

Understanding Debugging Breakpoints in PowerShell

Breakpoints will help in narrowing down where your code has failed.

How I Test My PowerShell Code

While I've shown you the basics of testing your code in Pester in a previous column, here's how I take those fundamentals to actual code.

Designing Testable PowerShell Code

Keeping in mind that your code will eventually need to pass the Pester test will help when finalizing your scripts.

How To Manage Windows File Shares with PowerShell

This automation of a commonly practiced task will end up saving you quite some time in the long run.

What Is Dot-Sourcing in PowerShell?

Dot-sourcing allows you keep everything modular when adding additional scripts.

Working with Arrays in PowerShell

Learning how an array stores an object will help in using them in your code.

Using PowerShell Test Case Code with Pester

When testing multiple scenarios to a single test, try this option.

How To Submit Your First Module to the PowerShell Gallery

Uploading your modules to the gallery will help with distribution headaches and allow for valuable feedback to come your way.

PowerShell Development with Visual Studio Code

You can be up and running with Microsoft's VS Code with the installation of a few PowerShell-specific extensions.

Parsing Command-Line Output with PowerShell

Here's a few ways to control legacy command-line utilities in PowerShell.

How To Run Code Before and After a Pester Test

Instead of injecting your own code, Pester makes it easy to run setup and teardown tasks when creating new PowerShell scripts.

How To Force PowerShell to Wait for Scheduled Tasks

Learning this handy technique will also allow you to add timers to different types of tasks.

Most   Popular