【问题标题】:Can I remove the title completely? [duplicate]我可以完全删除标题吗? [复制]
【发布时间】:2019-02-16 10:01:03
【问题描述】:

有什么方法可以删除许可证标题吗?

这是我脚本中命令的一部分:

Get-VMHost -Name test.test.local | Select LicenseKey

输出:

LicenseKey

----------  

M023J-ZYH06-88Y88-078RK-CR47M

我想删除 "LicenseKey" 标题

【问题讨论】:

    标签: powershell powercli


    【解决方案1】:

    使用-ExpandProperty -

    Get-VMHost -Name test.test.local | Select -ExpandProperty LicenseKey
    

    (Get-VMHost -Name test.test.local).LicenseKey
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-25
      • 2022-11-27
      • 1970-01-01
      • 2019-08-18
      • 2016-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多