Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Remote command works on one client but not another

$
0
0

My previous question turns out to be erroneous -

http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/52e5861f-3cde-42c4-9a52-64bbda0c16da

It turns out that the fact that one of the clients was running PS 2.0 is not the root of the problem. I now have PS 3.0 running on both clients and the Get-PrinterPort command works as you would expect on one Client1, but on Client2 I always receive the same error. Other commands like Get-Service works fine on both machines. Both client machines are running Win7 SP1 and the spooler service IS running on both. The commands are being sent to both clients from the same machine which is running Windows 2012 server.

Any suggestions would be greatly appreciated.

PS C:\Windows\system32> Get-PrinterPort -ComputerName Client1

Name                 ComputerName         Description          PortMonitor        
----                     ------------         -----------          -----------        
COM1:                Client1          Local Port           Local Monitor      
COM2:                Client1          Local Port           Local Monitor      
COM3:                Client1          Local Port           Local Monitor      
COM4:                Client1          Local Port           Local Monitor      
FILE:                   Client1          Local Port           Local Monitor      
LPT1:                  Client1          Local Port           Local Monitor      
LPT2:                  Client1          Local Port           Local Monitor      
LPT3:                  Client1          Local Port           Local Monitor      
XPSPort:             Client1          Local Port           Local Monitor      
xxx.xxx.xx.xxx    Client1          Standard TCP/IP Port TCPMON.DLL          
USB001               Client1          Virtual printer p... Dynamic Print Mon...

PS C:\Windows\system32> Get-PrinterPort -ComputerName Client2
Get-PrinterPort : The spooler service is not reachable.  Ensure the spooler service is running.
At line:1 char:1
+ Get-PrinterPort -ComputerName Client2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (MSFT_PrinterPort:ROOT/StandardCimv2/MSFT_PrinterPort) [Get-PrinterPort], CimEx
   ception
    + FullyQualifiedErrorId : HRESULT 0x800706ba,Get-PrinterPort


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>