How to Check if a Process is Running in PowerShell

Check if a Process is Running in PowerShell

One of my team members was trying to check if a process is running in their system. PowerShell is best suitable for this. Today, I’m going to show you exactly how to check if a process is running using PowerShell. We’ll start with the basics and work our way up to some really practical examples … Read more

PowerShell Question Mark Operator (With Examples)

PowerShell Question Mark Operator example

If you’ve been using PowerShell for a while and stumbled across a ? symbol in someone’s script — and had no idea what it was doing. The question mark in PowerShell is one of those things that looks confusing at first but makes your scripts much cleaner once you understand it. In this tutorial, I’ll walk you … Read more

PowerShell Unary Operator Examples (With Real Scripts)

PowerShell Unary Operator Examples

If you’ve been writing PowerShell scripts for a while, you’ve probably typed something like $i++ inside a loop. That little ++ is a unary operator in PowerShell. In this tutorial, I’ll walk you through every PowerShell unary operator with practical examples you can use right away. What Is a Unary Operator in PowerShell? Most operators in PowerShell work on … Read more

PowerShell Ternary Operator – With Practical Examples

PowerShell Ternary Operator

If you’ve been writing PowerShell scripts for a while, you already know the if/else statement like the back of your hand. It works, it’s readable, and it gets the job done. But sometimes you just want to check a condition and assign a value — without writing five lines of code for something that should take one. … Read more

PowerShell Import-CSV Foreach [With Examples]

PowerShell Import-CSV Foreach

Are you working with CSV files in PowerShell, if yes, this tutorial might be helpful to you. Today, I’m going to walk you through everything you need to know about using Import-CSV with foreach loops in PowerShell with some practical examples. Here’s what you’ll learn: Why Bother With Import-CSV and Foreach? Think about it. How … Read more

How to Kill a Process If It Is Running in PowerShell?

You’re working on your computer, and a program freezes. Or maybe you need to stop a process before running a script. Whatever the reason, you would like to know how to kill a process in PowerShell if it is running. I’ll walk you through everything you need to know about killing processes in PowerShell if … Read more

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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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