3
我用这个powershell命令属性:格式表和是数组
get-vm | ft name, *start*, *stop*, customproperties
与一个字符串数组作为属性返回对象(CUSTOMPROPERTIES):
Name StartAction DelayStart StopAction CustomProperties
---- ----------- ---------- ---------- ----------------
TKAD4 AlwaysAutoTurnOnVM 0 ShutdownGuestOS {NoStartupDelay, ...
TKAD3 AlwaysAutoTurnOnVM 0 ShutdownGuestOS {NoStartupDelay, ...
如何可以仅返回一个数组中的一个元素是一个属性作为一个对象来显示它作为表的一部分?
我的期望输出应该是这样的:
Name StartAction DelayStart StopAction Custom1
---- ----------- ---------- ---------- -------
TKAD4 AlwaysAutoTurnOnVM 0 ShutdownGuestOS NoStartupDelay
TKAD3 AlwaysAutoTurnOnVM 0 ShutdownGuestOS NoStartupDelay