February 23, 2013 at 8:46 am
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
February 24, 2013 at 2:47 am
Does it not explain more when you use the -Full switch?
Gaz
-- Stop your grinnin' and drop your linen...they're everywhere!!!
February 24, 2013 at 6:22 pm
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
February 25, 2013 at 3:22 am
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!!!
February 26, 2013 at 2:24 am
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).
February 28, 2013 at 8:52 am
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
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply