Printing Through Powershell

Hi

Im am trying to print a file from a remote pc using this command through Powershell

The following command works fine if the file is located on my local machine Start-Process –FilePath “C:\Temp\Fliename.pdf” –Verb Print -PassThru |%{sleep 10;$_} | kill

 

However I need to print a file off a remote machine so I use the following command : invoke-command -computername COMPUTER -scriptblock {Start-Process –FilePath “C:\Temp\Filename.pdf” –Verb Print -PassThru |%{sleep 10;$_} | kill}

 Running the command off the local PC with the file also on the local PC works it just does not work off the remote PC.

The command to print file off remote machine does not work and returns NO errors
LVL 6
Kyle DaviesRetail Software SpecialistAsked:
Who is Participating?
 
Jamie McKillopIT ManagerCommented:
Hello,

To run powershell commands remotely, the remote PC must be configured properly, Have you configured the PCs you are trying to run the commands on? Here is a guide on how to configure the computers properly - http://technet.microsoft.com/en-us/library/dd315349.aspx

JJ
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.