|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Yesterday @ 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
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 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!!!
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Yesterday @ 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
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 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!!!
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 3:43 AM
Points: 1,257,
Visits: 4,255
|
|
| 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).
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Yesterday @ 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
|
|
|
|