Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 powershell 获取标签的实例的键值对。
我有一个对象,$instance并$instance.Tags产生以下列表:
$instance
$instance.Tags
核心价值 --- ----- 美国广播公司 mnp mju
如何检索任何特定键的值?
您可以通过过滤来访问key:
key
$instance.Tags | ? { $_.key -eq "mnp" } | select -expand Value
($instance.tags | ? $_.key -eq "mytag").value