PowerShell Creating a Hash Table


Example

Example of creating an empty HashTable:

$hashTable = @{}

Example of creating a HashTable with data:

$hashTable = @{
    Name1 = 'Value'
    Name2 = 'Value'
    Name3 = 'Value3'
}