How to Find OU of a Computer Using PowerShell?

As an IT administrator or systems engineer, one of the most common Active Directory (AD) management tasks is identifying which Organizational Unit (OU) a computer belongs to. In this tutorial, I’ll explain to you multiple methods to find a computer’s OU using PowerShell. What Is an OU? An Organizational Unit (OU) in Active Directory is … Read more

PowerShell Get-Date Month Name

PowerShell Get-Date Month Name

In this tutorial, I will explain how to get month names using PowerShell’s Get-Date cmdlet. We will see different methods with examples. Method 1: Using Get-Date with Format Strings The most straightforward way to get month names in PowerShell is using the Get-Date cmdlet with format strings. This method is particularly useful when you want … Read more

PowerShell Get Difference Between Two Dates in Minutes

get difference between two dates in minutes in powershell

When working with PowerShell, I recently got a requirement to calculate the difference between two dates in minutes. In this tutorial, you’ll learn — step by step — how to get the difference between two dates in minutes using PowerShell. I will show you from the basics to advanced use cases with examples. Date and … Read more

PowerShell (Get-Date).AddDays(0) [With Examples]

PowerShell (Get-Date).AddDays(0)

Are you working with the Get-Date PowerShell cmdlet? I will show you how to work with the AddDays(0) method in PowerShell. In this tutorial, we’ll explore everything you need to know about using (Get-Date).AddDays(0) with various examples. Understanding Get-Date in PowerShell The Get-Date cmdlet returns a DateTime object that represents the current date and time … Read more

RPC Server is Unavailable Error in PowerShell

The “RPC Server is Unavailable” error in PowerShell can occur when your PowerShell session cannot establish a Remote Procedure Call (RPC) connection to a target machine. RPC (Remote Procedure Call) is a Windows service that enables communication between processes on different computers across a network. When PowerShell throws this error, it typically appears as: This … Read more

PowerShell Kill Process by Name [using Various Methods]

powershell kill process by name

Do you need to kill processes by name using PowerShell? Whether a program freezes, consumes too much CPU, or you need to automate cleanup tasks, PowerShell provides a powerful and flexible way to manage processes — far beyond what Task Manager offers. In this tutorial, you’ll learn how to kill a process by name in … Read more

PowerShell Get-ChildItem Files Only [with Practical Examples]

PowerShell Get-ChildItem Files Only

As a PowerShell expert with over a decade of experience, I’ve seen countless scenarios where administrators need to retrieve only files from directories while excluding folders. When working with file system operations, you’ll often need to list files only without including directories in your results. You can do this using the Get-ChlidItem PowerShell cmdlet. In … Read more

PowerShell Send Email to Multiple Recipients

PowerShell Send Email to Multiple Recipients

One of my clients recently asked us to send the server log files via email to multiple recipients. So, I suggested using PowerShell’s Send-MailMessage cmdlet to send emails to multiple recipients. In this tutorial, you’ll learn how to send emails to multiple recipients using PowerShell, how to include CC/BCC, attachments, and even how to use … Read more

How to Check if a Module Is Installed using PowerShell?

Check if a Module Is Installed using PowerShell

In PowerShell, modules are the building blocks that extend its functionality. Whether you’re managing Azure, Active Directory, or automating Windows tasks, modules provide reusable commands and scripts that make your job easier. But before using a module, you often need to check if it’s installed — especially when running scripts across multiple systems or CI/CD … Read more

How to Check Hard Drive Space using PowerShell?

powershell check hard drive space

As a system or PowerShell administrator, you might need to monitor disk space, whether on a single PC or across hundreds of servers. In this tutorial, you’ll learn how to check hard drive space using PowerShell on Windows 10, Windows 11, and Windows Server. Before running PowerShell commands: Now, let me show you different methods … 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.