Windows 10: Sending files to a printer in PowerShell

Discus and support Sending files to a printer in PowerShell in Windows 10 BSOD Crashes and Debugging to solve the problem; In Windows 7 with the command prompt I could issue the following commands: net use lpt1 \\computer-name\printer-name /persistent:yes copy /A... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by DCR_colorman, Jul 26, 2018.

  1. Sending files to a printer in PowerShell


    In Windows 7 with the command prompt I could issue the following commands:

    net use lpt1 \\computer-name\printer-name /persistent:yes

    copy /A filename.txt lpt1


    These assign the identifier lpt1 to a shared printer on a USB port.


    On my Windows 10 machine none of these commands work and after two hours of searching I cannot find anything online that describes a replacement of work around in Windows 10.


    Do you have any suggestions?

    :)
     
    DCR_colorman, Jul 26, 2018
    #1
  2. Karen Her Win User

    turning on file and printer sharing windows 10

    Thank you for the update. What we can suggest now is to turn on File and Printer sharing in Command Prompt. Here are the steps to do it:



    • Leave File and Printer Sharing for Microsoft Networks turned
      on.
    • Type CMD in the Search bar.
    • Right-click on Command Prompt, and select Run as Administrator.
    • Type netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes, and hit
      Enter.
    • Exit from the command prompt, and check if it will work.


    If issue persists, try turning it on using Powershell, and check if it works. Here are the steps:



    • Leave File and Printer Sharing for Microsoft Networks turned
      on.
    • Type Powershell in the Search bar.
    • Right-click on Windows PowerShell, and select
      Run as Administrator
      .
    • Type netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes, and hit
      Enter.
    • Close PowerShell.


    Let us know how it goes.
     
    Karen Her, Jul 26, 2018
    #2
  3. Kursah Win User
    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Jul 26, 2018
    #3
  4. Sending files to a printer in PowerShell

    Printer

    Hi Rodrigo,

    I am sorry to know that you are having issues with Printer.

    What and all steps have you tried so far?

    Restart the computer and check.

    Also, check for Windows updates.

    I suggest you to run the Printer Troubleshooter and check if it helps.


    • In Search window type Troubleshooting and click on it to open it.

    • Click on Hardware and Sound.

    • Then click on Printer to run the troubleshooter. Follow onscreen steps.
     
    Kalpana Shankarappa, Jul 26, 2018
    #4
Thema:

Sending files to a printer in PowerShell

Loading...
  1. Sending files to a printer in PowerShell - Similar Threads - Sending files printer

  2. Creating a batch file to send the label files to the printer

    in Windows 10 Support
    Creating a batch file to send the label files to the printer: is it possible to create a bat file to print a barcode label? 178788
  3. Computer not sending to Printer

    in Windows 10 Drivers and Hardware
    Computer not sending to Printer: So I recently did the new update on windows 10. My printer HP envy 4520 stopped printing in color, which it has done before, so I uninstalled and tried to reinstall the drivers. Now when I try to install the drivers it tells me there is a driver error or an issue with...
  4. PC does not send text to printer

    in Windows 10 BSOD Crashes and Debugging
    PC does not send text to printer: My Windows 10 / Office 365 PC will not send text to the printer. A word docx will print the grids if a table is in the document. Excel documents print the grids only. PDF files print okay. All these are okay on my windows 7 PC....
  5. PowerShell rename files

    in Windows 10 Network and Sharing
    PowerShell rename files: Dear team, I have 30,000 .jpg files in a folder and I need to rename them. I am trying to use Windows PowerShell. I want all the files to have a numeric name with 5 digits. For example, I want to do the following: 1.jpg -> 00001.jpg 2.jpg -> 00002.jpg ... 29999.pg...
  6. Powershell for Printers Question

    in Windows 10 Drivers and Hardware
    Powershell for Printers Question: Hi all, does anyone have a work around to adding a tray (to set the following like in the screenshot) with powershell? [img] 150911
  7. remove OneNote printer with powershell

    in Windows 10 Ask Insider
    remove OneNote printer with powershell: [ATTACH] Hi world, I d like to remove OneNote printer with powershell but it does not work and one printer is not listed (OneNote) any help will be apreciated....
  8. Printer is sending output to a file (.prn)

    in Windows 10 Drivers and Hardware
    Printer is sending output to a file (.prn): Printer is sending output to a file (.prn) How to change to print? I just updated to Win10 ver 1903. https://answers.microsoft.com/en-us/windows/forum/all/printer-is-sending-output-to-a-file/6559f7a8-8bbd-4d59-b644-c4052dc48a3e
  9. Sending file

    in Windows 10 Network and Sharing
    Sending file: How to send file over 25 MB? https://answers.microsoft.com/en-us/windows/forum/all/sending-file/41828ca1-12ac-4a0b-b1bf-698e28ded456"
  10. How to send .prn file directly to USB local printer?

    in Windows 10 Drivers and Hardware
    How to send .prn file directly to USB local printer?: I may be in the wrong department here, so feel free to move if needed: I am trying to use the LaserJet Cleaning Utility made for my HP LaserJet 5P (I know, it is an antique, but it still works!) connected via USB A to Centronics Parallel Printer Adapter. This utility consists...

Users found this page by searching for:

  1. powershell send file to printer

    ,
  2. send files to printer in powershell

    ,
  3. send pdf file to printer in powershell

    ,
  4. send png file to printer powershell,
  5. powershell send a file to a printer,
  6. powershell file to usb printer,
  7. send file to printer using powershell,
  8. powershell send files to printer,
  9. powershell send binary file to printer,
  10. powershell send .pdf documents to a printer,
  11. kalpana shankarappa,
  12. send prn file to printer using powershell,
  13. send file to printer with powershell,
  14. powershell send docx files to printer,
  15. powershell docx files to printer