Thank you. That's what I was looking for.
"PaulChavez" <PaulChavez@newsgroup> wrote in message
> Try this:
> get-wmiobject -class "Win32_Printer" | format-table Name,DriverName
> Localhost and roo\CimV2 are defaults for get-wmiobject.
> "Russell" wrote:
>> In the script below how do I output the $objItem.Name and
>> using Format-Table instead of write-host or do I need to somehow use
>> $strComputer = "."
>> $colItems = get-wmiobject -class "Win32_Printer" -namespace
>> "root\CIMV2" -computername $strComputer
>> foreach ($objItem in $colItems)
>> write-host $objItem.Name $objItem.DriverName