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 Get Disk Space Information Using PowerShellThis article discusses a couple of commands that will export information on all of our system drives and learn how to determine how much drive space is left in our machine using PowerShell. How to Copy Files Over the Network in PowerShellThis tutorial will teach you to copy files over network share using PowerShell. How to Test a Variable's Data Type Using PowerShellThis article will discuss several ways how we can handle variable data type mismatch and how we can properly correct them using PowerShell. How to Perform awk Commands in PowerShellThis article will discuss how we can use similar commands and functions similarly to the awk commands using PowerShell. How to Find Files With Extension in PowerShellThis tutorial demonstrates how to find files with extension in PowerShell. How to Remove-Item if File Exists in PowerShellThis article will discuss how to copy files in bulk and check if the file is existing in the destination folder, and remove them, using PowerShell. How to Create New Registry Keys Using PowerShellThis article will discuss how to add and edit registry key values using Windows PowerShell safely. How to Run a PowerShell Script From Within the Python ProgramThe Popen class in the subprocess Python module is used to run an external program as a separate process within the host operating system. So, this is the most convenient approach to running a PowerShell script from within the Python program. How to Install a PFX Certificate Using PowerShellThis article will discuss PFX certificates and how we can import them into our local and remote machines using PowerShell. How to Unblock Files Using PowerShellThis article will discuss how to unblock and allow files downloaded from the internet using PowerShell. How to Pass an Array to a Function in PowerShellIn PowerShell, an array is a data structure which consists of a collection of elements in any type. Arrays can be easily passed to PowerShell functions to make use of them. How to Invoke WebRequest in PowerShell 2.0Before PowerShell version 3.0, the WebRequest class, which is available via the .NET framework, has been used to make an HTTP request to a web URI. The WebRequest class contains a static method called Create() which can be accessed from PowerShell with the help of the PowerShell static member operator. How to Generate Random Strings Using PowerShellThis article will discuss how to generate random strings that we can use for passwords using PowerShell. How to Get-Acl for a Specific User in PowerShellThis tutorial demonstrates how to use get-acl to check permission for a specific user in PowerShell. How to Modify XML File Content Using PowerShell ScriptThis tutorial demonstrates various approaches to modify XML file content using PowerShell script. How to List Local Users and Groups Using PowerShellThis article will discuss how to query local users and groups in our machine with PowerShell. How to Create JSON Array in PowerShellThis tutorial will discuss creating a JSON array in PowerShell. How to Encode Without BOM in PowerShellThis tutorial discusses using UTF-8 encoding while working with files without BOM in PowerShell. How to Set Default Value With Read-Host in PowerShellIn this guide, we'll explore different methods to incorporate default values with Read-Host in PowerShell. How to Install Python With PowerShell This article discusses how to install Python manually through a package manager called Chocolatey. How to Extract a PowerShell Substring From a StringYou can extract a substring from a string on windows powershell How to Check if a File Contains a Specific String Using PowerShellYou can check if a text file contains a specific string with Windows PowerShell. How to Loop Through a JSON File in PowerShellThe main aim of this article is to demonstrate how to loop and iterate through a JSON file in PowerShell scripting. How to Reset PowerShell ColorsThis tutorial demonstrates how to reset PowerShell colors.