Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Getting printers on a remote PC in a workgroup Expand / Collapse
Author
Message
Posted Saturday, February 23, 2013 8:46 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 17, 2014 12:19 PM
Points: 181, Visits: 422
I'm trying to learn PowerShell. So I did a Get-Help Get-Printer -examples and saw that I can issue the command Get-Printer -ComputerName <computer name>. So, that's what I tried to do, but it doesn't work in my home network. Is this because I only have a peer-to-peer workgroup at home? Do commands like Get-Printer -ComputerName <computer name> only work in Active Directory domains?


Rod
Post #1423349
Posted Sunday, February 24, 2013 2:47 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 7:16 AM
Points: 5,740, Visits: 3,662
Does it not explain more when you use the -Full switch?

Gaz

-- Stop your grinnin' and drop your linen...they're everywhere!!!
Post #1423400
Posted Sunday, February 24, 2013 6:22 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 17, 2014 12:19 PM
Points: 181, Visits: 422
I'm pretty new to PowerShell; I didn't even know about the -Full switch.

So, after running the command again, using the -Full switch, I got the following message:

The spooler service is not reachable. Ensure the spooler service is running.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer) [Get-Printer], CimException
+ FullyQualifiedErrorId : HRESULT 0x800706ba,Get-Printer





Rod
Post #1423455
Posted Monday, February 25, 2013 3:22 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 7:16 AM
Points: 5,740, Visits: 3,662
I meant using the -Full switch when using Get-Help. Sorry I was terse, I was standing in the middle of a field (no shoveling or hitching involved).

Gaz

-- Stop your grinnin' and drop your linen...they're everywhere!!!
Post #1423520
Posted Tuesday, February 26, 2013 2:24 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, November 20, 2014 8:18 AM
Points: 1,620, Visits: 5,694
It sounds like that command is trying to access the spooler service on the other machine, and that isn't going to work unless you have permissions to do that. Easiest way to do that is to have both machines on the same domain and set the remote permissions appropriately; I'm pretty sure it would be possible to do this in a workgroup, but you'd have to use trickery to do it (e.g. have the same username and password on both machines and use that account to do the test).
Post #1423935
Posted Thursday, February 28, 2013 8:52 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 17, 2014 12:19 PM
Points: 181, Visits: 422
paul.knibbs (2/26/2013)
It sounds like that command is trying to access the spooler service on the other machine, and that isn't going to work unless you have permissions to do that. Easiest way to do that is to have both machines on the same domain and set the remote permissions appropriately; I'm pretty sure it would be possible to do this in a workgroup, but you'd have to use trickery to do it (e.g. have the same username and password on both machines and use that account to do the test).


Yeah, I guess using some trickery is what I'm going to have to do, in my workgroup domain.



Rod
Post #1425079
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse