PowerShell How-To


Configure Windows Deployment Services Using PowerShell

WDS can be set up via the traditional GUI, but what if you're in an enterprise and have a lot of WDS servers to set up? In that case, PowerShell is a great way to automate the process.

How To Quickly Test a SQL Connection with PowerShell

When creating automation scripts to discover, add, update or remove records from a remote SQL database, you need to make sure your script can successfully connect to the database.

Using PowerShell To Copy Active Directory Users

It's not always the best idea to create Active Directory users from scratch. Your company likely has a standard "template" of attributes that are set for every domain user. So why are you still creating each one by hand?

Set Up an Azure File Share Used as a Mounted Drive

Setting up a place to store files in the cloud isn't quite as easy as doing it on-prem. That's where Microsoft's Azure Files service comes in.

Creating an Azure SQL Database with PowerShell

When you need a SQL database fast, the cloud is the best way to go. Azure provides a SQL database as a PaaS that eliminates the need to get an entire SQL Server deployment up and running.

Creating a VHD from a Physical Computer with Disk2vhd

Disk2Vhd is a little Microsoft utility that does one thing and one thing well: convert physical computers to virtual disks.

Installing a Module from the PowerShell Gallery

For the longest time, the open source community had a concept called "public package repositories." Microsoft never had the same -- until the PowerShell Gallery.

Uploading a PowerShell Gallery Module Directly to Azure Automation

Azure Automation can be an excellent PowerShell script orchestration tool, though it has just a limited number of PowerShell modules. Luckily, we can upload our own modules, too.

Building Your First Azure Automation Runbook

In today's IT organizations, it's critical for system admins to know how to automate processes. Luckily, we have tools like Azure Automation to help us out.

How To Find and Use PowerShell History To Save Time

By using the various history commands in PowerShell, you can search for and easily execute any command that you have previously run in the same session.

How To Replace Text in a File with PowerShell

Whether the string you're looking for inside a text file is a single word or a complicated pattern, PowerShell has the ability to find and replace just about anything.

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.

Most   Popular

SharePoint Watch

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.