PowerShell How-To


Understanding PowerShell Scriptblocks

Scriptblocks are a ubiquitous part of PowerShell and are a construct that every PowerShell developer should understand.

How To Monitor a Windows Folder for New Files

Events happen regularly on a typical Windows computer. It's important for administrators to keep tabs on these events, especially if they affect sensitive information or mission-critical processes.

How To Create a Simple Pester Test Report in HTML

You can force Pester to return output in XML rather than via the console. Here's how.

Managing Arrays in PowerShell

How to read, add and modify array elements -- with a few curve balls along the way.

How To Query and Parse a REST API with PowerShell

Adam takes a close look at the Invoke-WebRequest and Invoke-RestMethod commands.

How To Work with Environment Variables in PowerShell

Windows environment variables give system administrators access to a plethora of information about the operating system. Here are some ways to manage them.

Enumerate File Shares on a Remote Windows PC with PowerShell

Here's how to quickly figure out what file shares exist on a remote computer, as well as what information is configured on them.

How To Get Notified When a User Is Added to Active Directory

Adam walks through how to proactively monitor an AD group for changes and execute a PowerShell script to take action when that happens.

Using Robocopy To Transfer Files

The GUI is fine if you're only moving a few files, but for larger and more complex migrations, this built-in Windows utility is the way to go.

Installing Windows Admin Center on Windows Server Core

Windows Server Core is the epitome of Microsoft's shift toward GUI-free. But since you can't beat a good dashboard, here's how to access the GUI remotely.

Finding Active Directory FSMO Role Holders with PowerShell

Since FSMO roles are typically spread out among various domain controllers, it's not always easy to figure out which domain controller holds a particular role. Luckily, we have PowerShell and the AD module to make this task a breeze.

Manage Active Directory User Accounts with PowerShell

If you manage just a few user accounts, you could get by with AD Users and Computers or the AD Administrative Center. But if you're in a large organization, you can use PowerShell to automate the identity management process.

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?

Most   Popular