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 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 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 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 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. How to Install Software in PowerShellThis article will demonstrate several methods and approaches to install software using Windows PowerShell. How to Clear the Screen in PowerShellThis article discusses and provides several ways to clear the PowerShell screen scripting environment. How to Check if a String Is Not NULL or EMPTY in PowerShellThis tutorial will introduce different methods to check if a string is not null or empty in PowerShell. How to Get Logged on Users in PowerShellThis article will discuss several ways to use PowerShell to get current logged-in users on a computer. The methods we know will include native commands, .NET classes, and Windows Management Instrumentation (WMI) specific cmdlets. How to Run Exe File With Parameters in PowerShellIn this article, we are only focusing on the ways of running exe files with parameters because the normal exe file execution (without parameters) is quite straight forward if it is already in the Windows PATH. How to Create an Input Box in PowerShellThis article will explain getting user input in PowerShell using the prompt and how to generate an input box using PowerShell GUI. How to Clear Variable Content in PowerShellThis tutorial will teach you to clear variable content in PowerShell. How to Run Commands in Parallel in PowerShellThis article will teach us to understand and use various PowerShell multithreading techniques to process multiple data streams simultaneously but managed through the same console. How to Query Active Directory Users in PowerShellThis article will discuss how to explore working one of the active directory objects and use Windows PowerShell Active Directory Module to manage active directory users. How to Rename Files and Folders Using PowerShellThis article will discuss filtering files and folders and how to rename the file names and change the file extension using Windows PowerShell. How to Remove Spaces From a Variable Using PowerShellThis tutorial will teach you to remove spaces from a variable using PowerShell.