Printing Through Powershell

Posted on 2012-08-24
Last Modified: 2012-09-18

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
Question by:Kyle_Davies
    1 Comment
    LVL 37

    Accepted Solution


    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 -


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
    Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now