About 777,000 results
Open links in new tab
  1. 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 …

  2. about_Assignment_Operators - PowerShell | Microsoft Learn

    Jan 19, 2024 · In PowerShell, you can assign values to multiple variables using a single command. The first element of the assignment value is assigned to the first variable, the …

  3. 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.

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

    You can assign a value to the variable while creating it or assign or change the value after it is created. You can use the parameters of New-Variable to set the properties of the variable, set …

  5. Manage variables in Windows PowerShell scripts - Training

    This module explains how to create variables, name them correctly, and assign the correct data type, while ensuring the data you store in variables is in the correct format and easily accessible.

  6. Everything you wanted to know about variable substitution in strings

    Jun 20, 2024 · Variable substitution. PowerShell has another option that is easier. You can specify your variables directly in the strings. $message = "Hello, $first $last." The type of quotes you …

  7. Everything you wanted to know about arrays - PowerShell

    Jun 20, 2024 · You can assign the results of any pipeline into a variable. It's an array if it contains multiple items. $array = 1..5 | ForEach-Object { "ATX-SQL-$PSItem" }

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

    $null is an automatic variable in PowerShell used to represent NULL. You can assign it to variables, use it in comparisons and use it as a place holder for NULL in a collection. …

  9. Set variables in scripts - Azure Pipelines | Microsoft Learn

    Jan 31, 2025 · Learn how to define variables in Bash and PowerShell scripts and use them in your pipeline.

  10. about_Parameters_Default_Values - PowerShell | Microsoft Learn

    Jan 2, 2025 · The $PSDefaultParameterValues preference variable lets you specify custom default parameter values for any cmdlet, advanced function, or script that uses the …

Refresh