
Everything you wanted to know about arrays - PowerShell
Jun 20, 2024 · Because arrays are such a basic feature of PowerShell, there is a simple syntax for working with them in PowerShell. Create an array. An empty array can be created by using …
Everything you wanted to know about hashtables - PowerShell
Jun 26, 2023 · A hashtable is a data structure, much like an array, except you store each value (object) using a key. It's a basic key/value store. First, we create an empty hashtable. $ageList …
about_Arrays - PowerShell | Microsoft Learn
Jan 3, 2025 · It isn't easy to delete elements from an array, but you can create a new array that contains only selected elements of an existing array. For example, to create the $t array with …
about_Hash_Tables - PowerShell | Microsoft Learn
Jan 19, 2025 · Typically, when you create a hashtable you include the key-value pairs in the definition. However, you can add and remove key-value pairs from a hashtable at any time. …
Arrays - PowerShell | Microsoft Learn
Jan 8, 2025 · An array is created via an array creation expression, which has the following forms: unary comma operator ,array-expression , binary comma operator , range operator , or New …
Everything you wanted to know about PSCustomObject - PowerShell
Jun 20, 2024 · PSCustomObject is a great tool to add into your PowerShell tool belt. Let's start with the basics and work our way into the more advanced features. The idea behind using a …
about_Splatting - PowerShell | Microsoft Learn
Jan 29, 2024 · PowerShell is effectively using array splatting to bind the values to the parameters of the script block. When using ArgumentList, if you need to pass an array as a single object …
New-Guid (Microsoft.PowerShell.Utility) - PowerShell
The New-Guid cmdlet creates a random globally unique identifier (GUID). If you need a unique ID in a script, you can create a GUID, as needed.
New-Object (Microsoft.PowerShell.Utility) - PowerShell
This example shows how to create an object with a constructor that takes multiple parameters. The parameters must be put in an array when using ArgumentList parameter.
about_Assignment_Operators - PowerShell | Microsoft Learn
Jan 19, 2024 · To delete a particular value from an array, use array notation to assign a value of $null to the particular item. For example, the following statement deletes the second value …