About 42,000 results
Open links in new tab
  1. about_Variables - PowerShell | Microsoft Learn

    To create the variable in every PowerShell session that you start, add the variable to your PowerShell profile. For example, to change the value of the $VerbosePreference variable in …

  2. Variables - PowerShell | Microsoft Learn

    Being a dynamically typed language, PowerShell's variables do not have types, per se. In fact, variables are not defined; they simply come into being when they are first assigned a value.

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

    The New-Variable cmdlet creates a new variable in PowerShell. You can assign a value to the variable while creating it or assign or change the value after it is created.

  4. Everything you wanted to know about arrays - PowerShell

    Jun 20, 2024 · I prefer to declare my arrays on multiple lines like that. Not only does it get easier to read when you have multiple items, it also makes it easier to compare to previous versions …

  5. Arrays - PowerShell | Microsoft Learn

    Jan 8, 2025 · PowerShell supports arrays of one or more dimensions with each dimension having zero or more elements. Within a dimension, elements are numbered in ascending integer order …

  6. about_Arrays - PowerShell | Microsoft Learn

    To create and initialize an array, assign multiple values to a variable. The values stored in the array are delimited with a comma and separated from the variable name by the assignment …

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

    The command uses the Set-Variable cmdlet to create the variable. It uses the PassThru parameter to create an object representing the new variable, and it uses the pipeline operator (|) to pass …

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

  9. about_Assignment_Operators - PowerShell | Microsoft Learn

    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 second element is …

  10. Types - PowerShell | Microsoft Learn

    A PowerShell implementation includes a family of core types (which are documented in this chapter) that each contain their own set of base members. Those members can be methods or …