Hello all,
I am trying to remotely get printer information from domain joined user workstations through PowerShell, and I am having problems with some of them.
Environment info:
- Administrator workstation – Windows 8 Enterprise Edition
- User workstations – Windows 7 Enterprise Edition with SP1
- Domain controllers and domain functional level – Windows 2008 R2 Standard Edition
- User that PowerShell is run under has local administrative permissions on all user workstations
Command I am using is „get-printer –computername comp_name“. Some computers return printer list as expected, but some computers return following error:
get-printer : The spooler service is not reachable. Ensure the spooler service is running
.
At line:8 char:5
+ get-printer -computername ($item.name)|select computername,name,drivername,p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer
) [Get-Printer], CimException
+ FullyQualifiedErrorId : HRESULT 0x800706ba,Get-Printer
WinRM and File and printer sharing exception are enabled on all user workstations and other PowerShell commands that use computername parameter are functioning (e.g. get-service –computername comp_name). Also, I can remotely query printer list on computers that have problems with get-printer cmdlet by using WMI within PowerShell (get-wmiobject win32_printer –computername comp_name)
I’ve compared services running on computers that have no problem and on computers that I have problem with, I’ve tried turning off the firewall, I’ve checked domain connectivity, but everything seems in place. Since I am out of ideas, I obviously need help.
Thanks, MiToZ