Case-Sensitive Hash Tables
PowerShell hash tables PowerShell hash tables are, by default, not case sensitive: PS > $hash = @{} PS > $hash.Key = 1 PS > $hash.keY...
- Written By: ps1
- Last Updated: April 22, 2025
- 1 minute read
PowerShell hash tables PowerShell hash tables are, by default, not case sensitive: PS > $hash = @{} PS > $hash.Key = 1 PS > $hash.keY...
PowerShell hash tables are, by default, not case sensitive:
PS > $hash = @{} PS > $hash.Key = 1 PS > $hash.keY = 2 PS > $hash.KEY 2
If you need case-sensitive keys, you can create the hash table this way:
PS > $hash = New-Object system.collections.hashtable PS > $hash.Key = 1 PS > $hash.keY = 2 PS > $hash.KEY PS > $hash Name Value ---- ----- keY 2 Key 1
Contact our sales team to get a personalized demo of our database management software for SQL Server!