Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 613
  • Last Modified:

Printing Through Powershell


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
Kyle Davies
Kyle Davies
1 Solution
Jamie McKillopIT ManagerCommented:

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


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now