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

How to Convert Number to String in PowerShell?

Convert Number to String in PowerShell

In this tutorial, I will explain how to convert a number to a string in PowerShell using various methods with examples. PowerShell is built on the .NET framework, which means every piece of data has a specific type (e.g., Int32, Double, String). When you perform a conversion, you aren’t just changing the “look” of the … Read more

PowerShell Find File by Name Wildcard Examples

PowerShell Find File by Name Wildcard

PowerShell provides powerful file search capabilities using wildcard patterns and cmdlets. In this tutorial, I will explain how to find files by name wildcard in PowerShell with examples. You will learn multiple methods to locate files using pattern matching in PowerShell. What Are Wildcards? Before we dive in, let’s understand wildcards: Examples: Method 1: Using … Read more

How to Find the Most Recent File in a Directory with PowerShell?

Find the Most Recent File in a Directory with PowerShell

One of my clients recently asked for a PowerShell script to find the most recent file in a directory. This might be something like grabbing the latest log file for troubleshooting, finding the most recent backup before running a script, or locating today’s report. In this tutorial, I’ll walk you through three different methods for … Read more

How to Find Dates in Strings with PowerShell?

powershell find date in string

Have you ever needed to pull dates out of log files, email subjects, filenames, or messy text data? Maybe you’re parsing server logs to find when errors occurred, or you need to extract invoice dates from a pile of documents. Finding and extracting dates from strings is one of those tasks that seems simple until … 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.