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 Display Current Time Zone in PowerShellThis article illustrates how to display current time zone information in PowerShell. Learn to use the Get-TimeZone cmdlet to retrieve your current time zone and list all available time zones. Whether you're a beginner or an experienced user, this guide provides essential insights to manage time zones effectively in PowerShell. PowerShell ForEach Export-CSVThis tutorial demonstrates how to export CSV using the ForEach loop in PowerShell. Learn to efficiently export Git repository data, including branch information and commit history. Enhance your PowerShell skills with practical examples and streamline your data management tasks. Ternary Operator in PowerShellThis tutorial introduces the ternary operator in PowerShell, explaining its syntax and providing practical examples. Learn how to use this powerful tool to streamline your scripting and enhance your coding efficiency. Explore conditional outputs and combinations with other PowerShell features to master this essential operator for cleaner code. Write-Verbose vs Write-Host in PowerShellThis tutorial will teach you to use Write-Verbose and Write-Host cmdlet in PowerShell. Discover the differences between these commands, when to use each, and how they can enhance your scripting abilities. Learn with clear examples and improve your PowerShell skills today. How to Read CSV File Line by Line in PowerShellThis article explains how to read CSV files line by line in PowerShell. Discover various methods, including Import-Csv, Get-Content, and StreamReader, to efficiently loop through CSV data. Perfect for beginners and experienced users looking to enhance their PowerShell scripting skills. How to Escape Special Characters in PowerShellLearn how to escape special characters in PowerShell with this comprehensive tutorial. Discover methods using backticks, single quotes, and double quotes to manage special characters effectively. Improve your scripting skills and ensure your code runs smoothly by mastering these techniques. Creating Aliases with Parameters in PowerShellMaster PowerShell aliases with parameters! Learn how to use functions as a workaround, plus best practices for efficient scripting. Boost your productivity now! How to Delete Folder in PowerShellThis article introduces how to delete a folder in powershell How to Get PowerShell VersionThis article introduces how to get powershell version. How to Count the Length of Array in PowerShellThis tutorial will teach you to count length of an array in PowerShell. How to Use the @ Symbol in PowerShellThis tutorial will teach you the use of @ symbol in PowerShell. How to Get the Windows Version in PowerShellThis article will show the possible commands in getting windows version using PowerShell. This article also explains the different commands and differentiates them from each other. How to Add a New Line to Command Output in PowerShellThis tutorial will teach you the different ways to add a new line to command output in PowerShell. How to Create an Empty Array of Arrays in PowerShellThis article demonstrates how we can create an empty array to store subarrays. We will start by discussing the basics of creating and assigning values to arrays and finally see how we can create empty arrays. How to Negate a Condition in PowerShellThis tutorial will teach you to negate a condition in PowerShell. How to Count Items in a Folder With PowerShellThis tutorial will teach you to count the number of files and folders using PowerShell. How to Set Environment Variables Using PowerShellThis article will discuss setting environment variables and refreshing them in our current session using PowerShell. How to Run a PowerShell Script From a Batch FileThis tutorial will teach you to run a PowerShell script from a batch file. How to Set Timezone Using PowerShellThis tutorial will teach you to set the time zone in PowerShell. How to Create Text File Using Windows PowerShellThis tutorial will teach you to create new text file through Windows PowerShell. How to Run as Different User in PowerShellThis article introduces how to run as a different user in powershell. Remoting $Using Variable Scope in PowerShellThis tutorial will teach you to use local variables in remote commands in PowerShell. How to Check SQL Server Version Using PowerShellThis tutorial will teach you to check the SQL server version using PowerShell. How to Sort Object in PowerShellThis tutorial will teach you how to sort objects in PowerShell.