小编Mik*_*ike的帖子

PowerShell Hashtable show first key

I am playing around with hashtables in powershell and try to figure out, if there is a way, to show the content of Key1 (not the value).

I tried several ways to have as an result "Monday" but either I get all the names of the table, a blank return or an error message.

here's my table:

$Weekdays = @{Monday = 'Montag';Tuesday = 'Dienstag'}
Run Code Online (Sandbox Code Playgroud)

If possible, I would like to have as an output only "Monday", is there a …

powershell hashtable

6
推荐指数
1
解决办法
2881
查看次数

标签 统计

hashtable ×1

powershell ×1