我可以完全删除标题吗?

Can I remove the title completely?

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

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

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

输出:

LicenseKey

----------  

M023J-ZYH06-88Y88-078RK-CR47M

我想删除 "LicenseKey" 标题

使用-ExpandProperty -

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

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