【发布时间】:2013-09-05 15:43:07
【问题描述】:
PS新手在这里...
如何让远程计算机名称出现在输出中?
$computer = "PC3090-121","APCD02"
Get-WmiObject Win32_Printer -ComputerName $computer |
Select-Object SystemName,Name,Local |
Format-Table -AutoSize
我尝试在 Select 和 format-table -properties 中包含 -computername, computername, %computername% - 不高兴...
我的搜索结果为空,或者我无法理解。
------------------ 答案:
$computer = "PC3090-121","APCD02"
Get-WmiObject Win32_Printer -ComputerName $computer |
Select-Object __Server, Name, Local |
Format-Table -AutoSize
【问题讨论】:
标签: powershell wmi wmi-query