How to Clear PowerShell History (And Why You Might Want To)

Clear PowerShell History

If you’ve been using PowerShell for a while, you’ve probably noticed it remembers every command you’ve typed. That’s usually handy—until it’s not. Maybe you accidentally typed a password in plain text. Or perhaps your history is so cluttered you can’t find anything useful anymore. Whatever the reason, clearing your PowerShell history is simpler than you … Read more

How to Get All Properties of an Object in PowerShell

Get All Properties of an Object in PowerShell

If you’ve been working with PowerShell for a while, you’ve probably run into situations where you need to see what properties an object has. Today, I’m going to walk you through everything you need to know about getting all properties of an object in PowerShell. We will see different methods with examples. When you run … Read more

How to Join an Array of Strings in PowerShell (The Easy Way)

Join an Array of Strings in PowerShell

If you’ve been working with PowerShell for a while, you’ve probably run into situations where you need to combine multiple strings into one. Maybe you’re creating file paths, building commands, or just formatting output for a report. Today, I’m going to show you exactly how to join arrays of strings in PowerShell. And trust me, … Read more

How to Convert Excel Files to CSV Using PowerShell (The Easy Way)

Convert Excel Files to CSV Using PowerShell

You know that moment when you need to convert dozens of Excel files to CSV format, and you’re thinking, “Great, I’ll be clicking ‘Save As’ for the next hour”? Yeah, I’ve been there too. Maybe you’re a data analyst who needs to feed CSV files into a database. Or perhaps you’re working with legacy systems … Read more

How to Check if a Port is Open Using PowerShell?

powershell check if port is open

Hey there! Today I’m going to show you how to check if a port is open using PowerShell. This is one of those tasks that sounds technical, but it’s actually pretty straightforward once you know the right PowerShell commands. Whether you’re troubleshooting a network issue, setting up a new server, or just trying to figure … Read more

How to Convert String to Number with Decimal in PowerShell?

PowerShell Convert String to Number with Decimal

When you import data into PowerShell (from CSV files, APIs, or user input), numbers often come in as text. They look like numbers, but PowerShell still treats them as strings, which means you cannot reliably sort, filter, or do any kind of numeric calculation on them. In this tutorial, you will see simple, practical ways … Read more

How to Convert Arrays to Hashtables in PowerShell?

Convert Arrays to Hashtables in PowerShell

If you’ve been working with PowerShell for a while, you’ve probably found yourself juggling arrays of data, such as lists of server names, user IDs, configuration values, etc. Arrays are great for storing ordered collections, but here’s the thing: when you need to look up a specific value or associate keys with values (like mapping … Read more

How to Convert TXT to CSV with PowerShell?

Convert TXT to CSV with PowerShell

Have you ever been handed a text file full of data—maybe a log file, an export from some legacy system, or just a simple list—and thought, “I wish this was in Excel or a proper spreadsheet format”? PowerShell provides powerful built‑in cmdlets for parsing, transforming, and exporting data efficiently. In this tutorial, you will learn … Read more

PowerShell: Convert Hashtable to String

powershell convert hashtable to string

As a PowerShell user, you’ll often need to convert hashtables to strings for logging, debugging, or displaying data in a readable format. This tutorial shows several practical ways to convert a hashtable to a string in PowerShell with clear examples. What is a Hashtable? Before we dive in, let’s clarify: a hashtable is a PowerShell … Read more

PowerShell Cannot Index into a Null Array – How to Fix

powershell cannot index into a null array

Are you getting an error “Cannot index into a null array” in PowerShell? If yes, this is probably you’re trying to grab something from a container that doesn’t exist (or is empty). In this tutorial, I will explain what causes the “cannot index into a null array” error and how to fix it. Understanding the … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.