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 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 Get-ADComputer -Filter in PowerShellThis article demostrates about Get-ADComputer -Filter for operating systems 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 Get Exit Code From Start-Process in PowerShellThis article will explain how to obtain the exit code after running a script with the start-process cmdlet. 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. How to Listen on Port in PowerShellThis tutorial demonstrates how to listen on port in PowerShell. How to Compare Folders in PowerShellThis tutorial demonstrates how to compare two folders using PowerShell. How to Check if User Exists in PowerShellThis tutorial demonstrates how to check if a user exists in PowerShell. How to Loop Through Files and Folders in PowerShellThis article illustrates how we can write a PowerShell script to loop through files and folders. We will use the Get-ChildItem and ForEach statements to create different PowerShell scripts.