About 253,000 results
Open links in new tab
  1. PowerShell - Check if variable is Null or Empty — LazyAdmin

    Apr 9, 2024 · Learn how to check if a value is null or empty in PowerShell. Including the new Null-coalescing operators from PowerShell 7

  2. Everything you wanted to know about $null - PowerShell

    Jun 11, 2024 · The PowerShell $null often appears to be simple but it has a lot of nuances. Let's take a close look at $null so you know what happens when you unexpectedly run into a null …

  3. How to Check if a Variable is Null in PowerShell?

    Aug 26, 2024 · Recently, one of my subscribers asked me about checking if a variable is null in PowerShell. This is a very common requirement if you are working with PowerShell. In this …

  4. Null in PowerShell: Everything You Need to Know!

    Sep 17, 2025 · In this guide, I’ll go through everything you need to know about nulls in PowerShell. We will discuss the basics, like how to assign and check null values. We will also …

  5. How can I check if a string is null or empty in PowerShell?

    Dec 6, 2012 · IMO, Powershell is a strangest creation - most of the times it is overabundantly rich, but still missing essentials. -isNullOrEmpty predicate is one of them... You can use the …

  6. PowerShell Check for Null: Quick and Simple Guide

    Discover the secrets of how to PowerShell check for null values effectively. This guide simplifies the process, offering clear examples and practical tips.

  7. PowerShell - Check If Variable Is Null [5 Ways] - Java2Blog

    Nov 23, 2023 · In this article, we have discussed ways to check if variable is null in PowerShell. The equality operator (-eq) provides a straightforward check, while conditional statements offer …

  8. How to Check if a Variable is Null or Empty in PowerShell?

    May 7, 2025 · To check if a variable in PowerShell is null or empty, you can use the -eq operator or the [string]::IsNullOrEmpty () method. For example, $variable -eq $null or …

  9. Examine if variable is Null or Empty — LazyAdmin

    Apr 23, 2024 · There are a few methods to examine if a variable or result’s Null in PowerShell. The beneficial option to examine if a worth is NULL is by evaluating $null with the worth: Write …

  10. PowerShell $null - Check for null - ShellGeek

    Jan 22, 2022 · In this example, we will discuss PowerShell $null, check if a variable is empty, or if not null. When you type $null on the console, it returns empty. Check with another example. …