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 Pass Boolean Parameters to a PowerShell Script From a Command PromptThis tutorial will teach you about passing Boolean values to a PowerShell script from the command prompt. How to Create Aliases in PowerShellThis article will discuss how we create our aliases and set them up correctly in our environment and also, how we can export and import created aliases for next use. How to Get Only Directories Using Get Childitem in PowerShellThis tutorial will teach you to get only directories using Get-ChildItem in PowerShell. How to Filter Files and Folders Using PowerShellThis article will discuss the PowerShell Get-ChildItem cmdlet that we will use to get all items inside the directory and utilize its filter switch parameters. Equivalent of which Command in PowerShellThis tutorial will introduce you the equivalent of which command in PowerShell. How to Redirect a PowerShell Output to a File During ExecutionThis tutorial will teach you to redirect the output of a PowerShell to a file during its execution. How to Create Log Files in PowerShellThis article will show some ways to use logging in PowerShell scripts by writing output to text log files. How to Compress and Unzip Files Using PowerShellThis article will discuss what PowerShell commands to be used in archiving and unzipping compressed files. How to Loop Through Files in PowerShellThus article shows how to loop through files in a directory uing PowerShell. How to Replace a Text in File Using PowerShellThis tutorial will show you how to use PowerShell to replace every occurrence of a string in a file. How to PowerShell Multiline StringThis article shows how to assign multiple lines string in PowerShell. How to Manage Registries Using Windows PowerShellThis article will discuss what is Windows Registry, how we can backup and import registries, and get the properties of registries using PowerShell. How to Installing the NuGet Package in PowerShellThis article will learn why errors are happening and the step-by-step guide for installing the NuGet provider for PowerShell. How to Upload Files With FTP in PowerShellThis tutorial will teach you to upload files with FTP in PowerShell. How to Run PowerShell Commands in Command PromptThis article will discuss how to run PowerShell cmdlets in command prompt, and how to run legacy commands in PowerShell. How to Perform LDAP Queries in PowerShellThis article will dive deep into understanding how to use Active Directory filters and LDAP filters. How to Create a Shortcut Using PowerShellThis article will teach you to create a shortcut using PowerShell. How to Send Emails Using PowerShellThis article will discuss how to use Windows PowerShell to send emails and other ways to handle this method. How to Initialize an Array of Custom Objects in PowerShellThis article will explain what arrays are, how to create arrays and an array of objects in Windows PowerShell. How to Convert XML to CSV File in PowerShellThis tutorial will teach you to convert XML to CSV in PowerShell. How to Parse JSON Files Using PowerShellThis article will discuss the basics behind JSON and PowerShell. Then, we will learn to use Windows PowerShell to speak directly to a REST API and translate the data into something useful. How to Manage ACL Permissions Using PowerShellThis article will learn what are the different permission types and how to query, modify, and remove ACL on files and folders using PowerShell. How to Append Data to File Using PowerShellThis article will discuss how the PowerShell Add-Content cmdlet works with different examples that appends content to file. How to Run SQL Queries in PowerShellThis article explains how to invoke commands to an SQL server, perform CRUD operations, and other alternative ways to query SQL.