About 9,230,000 results
Open links in new tab
  1. How to use PowerShell Variables - LazyAdmin

    Jan 16, 2024 · Learn how to create, set, clear and remove variables in PowerShell. Difference scopes explained, incuding the Global Variable scope

  2. PowerShell: Setting Variables Made Simple

    To assign a variable in PowerShell, use the equal sign (=) operator. This operator sets the variable on the left to the value on the right. The basic syntax looks like this: $myVariable = …

  3. about_Variables - PowerShell | Microsoft Learn

    Jan 2, 2025 · To create a new variable, use an assignment statement to assign a value to the variable. You don't have to declare the variable before using it. The default value of all …

  4. Set-Variable (Microsoft.PowerShell.Utility) - PowerShell

    The Set-Variable cmdlet assigns a value to a specified variable or changes the current value. If the variable does not exist, the cmdlet creates it.

  5. How to Set Variables in PowerShell?

    Sep 3, 2024 · In PowerShell, you can create a variable by defining a variable name and then setting its value with the Set-Variable command. In this tutorial, I will explain how to set …

  6. PowerShell Global Variables [With Examples]

    Aug 23, 2024 · In this tutorial, I’ll explain everything about PowerShell global variables and how to use them and provide some practical examples. PowerShell global variables are variables that …

  7. In Powershell, how to set variable values within a function and …

    What is the proper way to do this? I want to set these values within this function and have those values available later on in the script, in the parent scope. The variables are created in your …

  8. Mastering PowerShell Variables: A Beginner Guide

    May 16, 2023 · Unlock the power of PowerShell variables. Learn how to create, manage scope, and utilize variables for dynamic and reusable scripting.

  9. PowerShell Variables: How to Name them and Assign Values

    Dec 24, 2024 · In this article, we will look at how to name a variable, assign values to a variable and the different data types of a variable. A PowerShell variable name is always preceded by …

  10. Variables and Operators - PowerShell - SS64.com

    Operators allow you to assign a value to the variable, or perform mathematical operations: = n Equals n . += n Increase value by n (for strings will append n to the string) -= n Decrease the …