Practical solutions

PowerShell Howtos How-To Guides

Solve the problem. Keep building. Collection of Windows powershell how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to List Drives in PowerShellThis article will discuss the benefits of Get-PSDrive command and several situations where we can apply the said command in a real-world scenario. How to Invoke Expressions Using PowerShellThis article will teach us how the PowerShell Invoke-Expression cmdlet works and how we can put it into everyday use. We will also differentiate its benefits against many similar cmdlets. How to Get File Version in PowerShellThis tutorial will teach you to get file version in PowerShell. How to Check if Folder Exists in PowerShellThis tutorial will teach you to check if a folder exists or not in PowerShell. How to Round Numbers in PowerShellThis article will discuss how we can round numbers in PowerShell using multiple functions of the .NET framework Math class. How to Find the Position of Substring in PowerShellThis tutorial will teach you to find the position of substring in PowerShell. How to Delete Files Older Than X Days Using PowerShellThis tutorial will teach you to delete files older than X days using PowerShell How to Remove Users From Groups in PowerShellThis article will discuss how we can remove users from active directory groups and discuss the parameters that accompany the command using PowerShell. How to Change Colors in PowerShellThis article will discuss how to change font colors, the background color of scripts, and the console window color using PowerShell. How to Increase and Decrease Variable in PowerShellThis article will discuss everything we should know about Incrementing and Decrementing and when to use Pre-Incrementing and Post-Incrementing (or Decrementing) in PowerShell. How to Get Registry on a Remote Computer in PowerShellThis article will tackle how we can invoke expressions on a remote computer, get registry values, and how we can combine them both to get registry values on a remote computer. How to Count Objects in PowerShellThis article will discuss different examples of how to count objects using PowerShell cmdlets with examples. How to Copy Files and Folders in PowerShellThis article will discuss how to copy a folder and file while giving us the ability to recurse files in a folder, using wildcards to select the files we need to copy and Windows PowerShell Remoting for a file copy. How to Export Output to a File Using PowerShellThis article will discuss how to export output data to a file, add data to an existing file, and manipulate output using PowerShell. How to Use Global Variables in PowerShellThis article will discuss what PowerShell variables are, its uses, and how global variables differentiate itself with a local variable. How to Replace Strings in PowerShellThe tutorial shows how to utilize the PowerShell replace method and PowerShell replace operator. How to Output Informational Messages in PowerShellThis article will differentiate the multiple write commands such as writing informational, warning, and error messages and providing situations on when and where we can use them in PowerShell. How to Get Date and Time Using PowerShellThis article will explain how we can get the current date and time, and how the DateTime object works in PowerShell. How to Manage Services in PowerShellThis article will discuss the PowerShell Service cmdlets, how to use them, and develop our script to manage services on many computers, locally or remotely. How to Display Message Box in PowerShellThis article will discuss the valuable functions of PowerShell GUI called Message Boxes, and we will learn how to write and output them using PowerShell. How to Upload File to SFTP With PowerShellThis article explains how to upload a file to SFTP using PowerShell. How to Measure Runtime of a Script Using PowerShellThis article will discuss how to accurately measure a run time of a script using Windows PowerShell. How to Remove Duplicate Values From a PowerShell ArrayThis tutorial will teach you the methods to remove duplicate values from a PowerShell array. How to Use PowerShell FunctionsThis article will differentiate functions from cmdlets, how to create functions, and how to pass parameters inside functions using PowerShell.