一个比较典型的WMI查询

 

Get-WmiObject win32_bios -ComputerName server1, server2 | Format-Table `
  @{n='Hostname';e={$_.__server}},
  @{n='SerialTag';e={$_.SerialNumber}},
  @{n='OS';e={Get-WmiObject win32_operatingsystem -ComputerName $_.__server | select -ExpandProperty name}}

 

posted @ 2015-05-11 09:34  dongdonggeorge  阅读(610)  评论(0编辑  收藏  举报