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 Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: 2 days ago @ 6:38 PM
Points: 97, Visits: 236
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


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 6:44 AM
Points: 3,536, Visits: 1,124
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 Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: 2 days ago @ 6:38 PM
Points: 97, Visits: 236
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


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 6:44 AM
Points: 3,536, Visits: 1,124
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
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 2:19 AM
Points: 1,257, Visits: 4,258
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 Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: 2 days ago @ 6:38 PM
Points: 97, Visits: 236
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