How about simply
Get-WmiObject Win32_Printer -ComputerName $computer |
Select-Object SystemName,Name,Local |
Format-Table -AutoSize
There is no computername
property on the resulting object, nor is there a %computername%
property. What exists is SystemName
.