impressoras compartilhadas por get
Get-Printer -ComputerName pc| where Shared -eq $true | fl Name
não obtenha impressoras compartilhadas
Get-Printer -ComputerName pc | where Shared -eq $false | fl Name
obter impressoras mapeadas
Get-WMIObject Win32_Printer -ComputerName $env:COMPUTERNAME | where{$_.Name -like “*\*”} | select sharename,name
obtenha todas as impressoras
Get-WMIObject Win32_Printer -ComputerName $env:COMPUTERNAME