将某一项的属性显示成列表

场景:

  有一个项(如错误记录项,目录项),想获取对象的详细信息显示成列表

方案:

  $dt=Get-Date

  $dt | Format-List -Force

应用:

  

总结:

  Powershell三种格式化命令操作:

  Format-list ,Format-table, Foram-wide

猜你喜欢

转载自www.cnblogs.com/feiyucha/p/9986785.html